You will find a Full Stack Token Authentication component built with Django Rest Framework and ReactJS which you can use anytime on your app
- 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
- Clone this project to your desired directory.
- Setup a python environment on your Linux (Alternatively use
python3 -m venv environment_name
) or Windows. - Install NodeJS.
- Activate your python environment and navigate to --> cloned project directory --> Backend directory, then run the following command:
pip install -r requirements.txt
if on Windowspip3 install -r requirements.txt
if on Linux
- Open another terminal and navigate to --> cloned project directory --> Frontend directory, then run the following command:
npm install
NB: Change the port numbers
- Make sure to add a .env file
- On your backend terminal run:
python manage.py runserver
if on Windowspython3 manage.py runserver
if on Linux
- Go to the browser and enter
http://127.0.0.1:8000/
on the address bar to run the Backend App - On your Frontend terminal run:
npm start
- Go to the browser and enter
http://localhost:3000/
on the address bar to run the Frontend App
Nolan Seokane Ⓒ Copyright 2021