Flask Authenication REST API
- Clone the repository and change directory
git clone https://github.com/karthikeyanranasthala/Flask-Auth-REST-API.git
cd Flask-Auth-REST-API
- Setup Python VirtualEnv and activate.
virtualenv -p <path_to_python_installation> venv
source venv/bin/activate
- Install the required packages.
pip install -r requirements.txt
- Setup environment variables in
.env
file.
MYSQL_USER="<username>"
MYSQL_PASSWORD="<password>"
MYSQL_DB="<database>"
JWT_SECRET_KEY="SomeRandomSecretPhrase"
- Start the server.
export FLASK_APP=app.py
export FLASK_ENV=development
- Register User
- Hash Password using PBKDF2
- Login User