Skip to content

Latest commit

 

History

History
23 lines (22 loc) · 1.23 KB

File metadata and controls

23 lines (22 loc) · 1.23 KB

Django JWT auth template with djoser

It is a readymade template for getting started quickly with authentication APIs in Django. The project is setup using Django & PostgreSQL. Djoser package is used along with simplejwt to handle JWT token based authentication. You can access the API documentation from this link. For detailed understanding of available APIs and modifications, visit the djoser official docs.

Features

  • Custom User with email login.
  • JWT authentication.
  • Send mail for account create confirmation, forget password and more.

Get started

  1. Clone repository.
    $ git clone <link-to-repository>
  2. Create vitural environment inside the backend folder.
    $ python -m venv .venv
  3. Activate the virtual environment
    • On Linux/Mac: $ source .venv/bin/activate
    • On Windows: $ venv\Scripts\activate
  4. Install required dependencies.
    $ pip install - requirements.txt
  5. Create .env at same level as manage.py.
  6. Add the required credentials.
  7. Run server and access the apis.
    $ python manage.py runserver