Flask Authenication REST API

Built With

  • Flask
  • JWT
  • MySQL

Usage

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

Features

  • Register User
  • Hash Password using PBKDF2
  • Login User