This is the simple auth service developed in Python using Flask framework. There are 2 major components to this:
- Flask App: REST APIs
Create & Activate a Virtual Environment
sudo pip install virtualenv
virtualenv ~/Projects/venv/authservice-env -p python3.8.3
source ~/Projects/venv/authservice-env/bin/activate
Installing Requirements
pip install -r requirements.txt
Start the Flask Application
python app/flask_app.py
docker-compose -f build
docker-compose up
Install The App as a python package
pip install -e .
Run the Tests
pytest
Get the coverage Report
coverage run -m pytest
coverage report