Byte-Mystic / Django-JWT-Authentication

This Web APP has JWT Authentication using DRF and user data is stored on MongoDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django JSON Web Token (JWT) Authentication with Django-RestFramework

Introduction

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.

Features

  1. User authentication with JWT
  2. SQLite database for user authentication
  3. MongoDB for storing notes
  4. ReactJS for the frontend
  5. Fetch request or Axios for communication with the backend

Branch-Specific Instructions

main Branch

  1. The default branch using fetch requests.
  2. Follow the general instructions for getting started.

axios Branch

  1. Utilizes Axios for API requests with interceptors.
  2. For enhanced functionality and request/response handling.
  3. Follow the general instructions for getting started.

Notes API Endpoints

/api/notes/: Retrieve all notes or create a new one.
/api/notes/:id/: Retrieve, update, or delete a specific note.

Getting Started

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:

  1. Client

    • npm start
  2. Server

    • python manage.py runserver

The app will be accessible at http://localhost:3000.

About

This Web APP has JWT Authentication using DRF and user data is stored on MongoDB


Languages

Language:JavaScript 44.0%Language:Python 38.5%Language:CSS 13.6%Language:HTML 3.9%