Two Factor Authentication using SMS, initially a project by Twilio Dev modified to use Africa's Taking API
This project is built using Flask web framework.
-
First clone this repository and
cdinto it.$ git clone https://github.com/bmwasaru/sms2fa.git $ cd sms2fa -
Create a new virtual environment.
-
If using vanilla virtualenv:
virtualenv venv source venv/bin/activate -
If using virtualenvwrapper:
mkvirtualenv automated-survey
-
-
Install the dependencies.
pip install -r requirements.txt
-
Copy the sample configuration file and edit it to match your configuration.
$ cp .env.example .env
Run
source .envto export the environment variables. -
Run the migrations.
Our app uses SQLite, so you probably will not need to install additional software.
python manage.py db upgrade
-
Make sure the tests succeed.
$ coverage run manage.py test -
Start the server.
python manage.py runserver
-
Check it out at: http://localhost:5000/.