It is a basic note web app that is created using Django and Django REST Framework with token authentication and React. It is good for learning first time how to connect Django with React or Any backend to frontend using REST API. It is good for those who are new to authentication using Django REST Framework.
First clone the github repository
git clone https://github.com/nmastepankaj/note_app_django_react.git
Open the repository folder in any code editor (VS code) or open any terminal. Move to the backend folder and install all the requirements.
cd backend
You need to create virtual environment for the project. If you don't have virtualenv the install it using the below command :-
virtualenv venv
Now, activate the virtual environment using the below command. If you're window user :-
./venv/Scripts/activate
If you're linux user :-
source venv/bin/activate
Then move to your project folder
cd note_app
install all the project requirements
pip install -r requirement.txt
Now, you need to create migrations and migrate all the migrations
python manage.py makemigrations
python manage.py migrate
Create super user for your project
python manage.py createsuperuser
Run your project
python manage.py runserver
Next step is to install the Frontend libraries. Open another terminal
cd frontend
npm i
Now start your react application
npm start
Now your application is ready to use. First register a user and login with the provided credentials.
I'm a full LAMP stack developer with Django as backend and React as frontend.
If you have any feedback, please reach out to us at my profile link provided above.
For support, email [email protected] or follow me on insta (nmastepankaj).
- Frontend of this project is taken from the CodeWithHarry inotebook project.
- for more information visit CodingNap.