This repository contains minimal backend code required to get Social Authentication configured for your backend
- Python >= 3.8 🐍
- Postgres 🐘
Create Database named social_login_db
from Postgres console.
Refer this article for more information on how to create database.
- Clone this repository
$ cd social-login-django-boilerplate
$ pip install pipenv
(What is pipenv?)- Enter the shell by typing
$ pipenv shell
- Install dependencies by typing
$ pipenv install
- Complete the steps mentioned in Environment variables section
- Run migrations
$ python manage.py migrate
- Run local server
$ python manage.py runserver
- Create file
.env
insidesocial-login-django-boilerplate
directory - Copy contents from
.env.example
file and paste it in the.env
file you just created. - After copying the contents, edit the
SECRET_KEY
,DATABASE_USER
andDATABASE_PASSWORD
with your respective key, user and password. - In
DATABASE_URL
, replaceyour_database_user
andyour_database_password
with your respective Database User and Password.