This project is a complete Notes making app built with ReactJS for the frontend. It utilizes Django-RestFramework for user authentication using JSON Web Tokens (JWT). The authentication information is stored in an SQLite database, while the notes themselves are stored in MongoDB.
- User authentication with JWT
- SQLite database for user authentication
- MongoDB for storing notes
- ReactJS for the frontend
- Fetch request or Axios for communication with the backend
main
Branch
- The default branch using fetch requests.
- Follow the general instructions for getting started.
axios
Branch
- Utilizes Axios for API requests with interceptors.
- For enhanced functionality and request/response handling.
- Follow the general instructions for getting started.
/api/notes/
: Retrieve all notes or create a new one.
/api/notes/:id/
: Retrieve, update, or delete a specific note.
Clone the repository:
git clone https://github.com/Byte-Mystic/Django-JWT-Authentication
Switch to the desired branch:
git checkout branch-name
Install dependencies:
In Frontend:
npm install
In backend: Create a virtual environment for easy setup.
pip install -r requirements.txt
Run the development server:
-
Client
npm start
-
Server
python manage.py runserver
The app will be accessible at http://localhost:3000.