Skip to content

earthcomfy/drf-phone-email-auth

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

DRF Phone-Email Auth

A Django app that provides a RESTful API interface for user registration and authentication using phone number or email.

Basic Features

  • Allows users to register using email or phone number.
  • Email and Phone number verification.
  • Twilio integrated.
  • Can set expiration time and length on generated tokens for phone verification.
  • Google authentication.
  • Password change and reset endpoints.

Quick Start

Clone this repository to your local machine and rename the .env.example file found in the root directory of the project to .env and update the environment variables accordingly. Then you can start the project using Docker or manually using virtual environment.

Using Docker:

$ docker-compose up
$ docker-compose exec web python manage.py migrate
$ docker-compose exec web python manage.py createsuperuser

or, manually:

  1. Create a Python virtual environment and activate it.
  2. Open up your terminal and run the following command to install the packages used in this project.
$ pip install -r requirements.txt
  1. Set up a Postgres database for the project.
  2. Run the following commands to setup the database tables and create a superuser.
$ python manage.py migrate
$ python manage.py createsuperuser
  1. Run the development server using:
$ python manage.py runserver
  1. Open a browser and go to http://localhost:8000/admin

About

A Django boilerplate that provides a RESTful API interface for user registration and authentication using phone number and/or email.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages