API template that can be used as a starting point for a new service
- Rate Limiting
- Request/Response Logging
- JWT Authentication
- Swagger Docs
docker-compose up -d
pip install virtualenv
virtualenv venv
source venv/bin/activate
venv\Scripts\activate
Once you've started your virtual environment run:
pip install -r requirements.txt
Start virtual environment:
source venv/bin/activate
Set local environment variables every time you start your environment:
env $(cat .env | xargs)
Start the app:
python main.py
Start virtual environment:
venv\Scripts\activate
Set local environment variables via PowersShell every time you start your environment:
.\bin\env.ps1
Start the app:
python main.py
Run the unit test from the root of the project:
python -m unittest tests\validate\test_user.py
Implement Flask-Authorize for ACL and RBAC: https://flask-authorize.readthedocs.io/en/latest/