Skip to content

nseokaneJHB/React-DjangoRestFramework-Authentication-Component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Components

You will find a Full Stack Token Authentication component built with Django Rest Framework and ReactJS which you can use anytime on your app

Prerequisites

  • Python
    • python 3.9.1
    • pip 21.0.1
  • Node & NPM
    • NodeJS v14.16.0
    • npm 7.6.3

NB: If you have not installed Python on your machine please visit the Python Official Site, download and set it up

NB: If you have not installed NodeJS on your machine please visit the NodeJS Official Site, download and set it up

Project Setup

  1. Clone this project to your desired directory.
  2. Setup a python environment on your Linux (Alternatively use python3 -m venv environment_name) or Windows.
  3. Install NodeJS.
  4. Activate your python environment and navigate to --> cloned project directory --> Backend directory, then run the following command:
    • pip install -r requirements.txt if on Windows
    • pip3 install -r requirements.txt if on Linux
  5. Open another terminal and navigate to --> cloned project directory --> Frontend directory, then run the following command:
    • npm install

Running the project

NB: Change the port numbers

  1. Make sure to add a .env file
  2. On your backend terminal run:
    • python manage.py runserver if on Windows
    • python3 manage.py runserver if on Linux
  3. Go to the browser and enter http://127.0.0.1:8000/ on the address bar to run the Backend App
  4. On your Frontend terminal run:
    • npm start
  5. Go to the browser and enter http://localhost:3000/ on the address bar to run the Frontend App

Login and Register Component

Nolan Seokane Ⓒ Copyright 2021

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published