-
Clone this repository
git clone https://github.com/anshsrtv/Authentication.git
-
Enter the main directory
cd Authentication/auth/
-
Create a virtual environment with Python3:
python3 -m venv env
. If you dont havepython3
yet then you can install it with:- linux(ubuntu/debian) -
sudo apt install python3
- windows - Download installer from https://www.python.org/downloads/release/python-370/.
- linux(ubuntu/debian) -
-
Activate the virutal environment:
source env/bin/activate
-
Install all the dependencies in
requirements.txt
file:pip install -r requirements.txt
-
Set some global variables:
export SECRET_KEY='YOUR_SECRET_KEY'
export EMAIL_ADDRESS='YOUR_EMAIL_ADDRESS'
export EMAIL_PASSWORD='YOUR_EMAIL_PASSWORD'
NOTE: Make sure the email address you use has
Less Secure App Access
and noTwo-Factor Authentication
to allow emails to be sent by the application. -
Make Migrations if needed
python manage.py makemigrations
-
Migrate the migrations:
python manage.py migrate
-
Run the app:
python manage.py runserver
-
Navigate to http://localhost:8000 in your browser
-
When you are done using the app, deactivate the virtual environment:
deactivate
Two Factor Authentication using Authy API.
anshsrtv/Authentication
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Two Factor Authentication using Authy API.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published