Skip to content

Repository files navigation

DRF Simple Auth

In this project I've implemented a regular authentiaction system using DRF. Current features:

  • Sign up using email validation
  • Requesting email validation email with timeoouts
  • Login using JWT token
  • Reset password

Note: This project is not maintained any further.

How to run this project?

First create a file named .env. In this file you need a to create a variable called SECRET_KRY and set it to a random secret key. To generate a random key you have two options:

  • If you have Django installed, import get_random_secret_key function from django.core.management.utils and invoke the function to get a random secret key.
  • You can also use Djecrety website to get a random secret key.

Both approaches work and if you perfer a simple way, use the seccond approach.

This project is dockerized. So in order to run it, you have to have Docker installed.

Clone the repository and cd into it. Now build and run the project by this command:

docker compose up --build

Visit localhost:8000.

About

A simple authentication system using DRF

Topics

Resources

Stars

2 stars

Watchers

2 watching

Forks

Used by

Contributors

Languages