simple python falcon rest api
Started from falcon-a-python-framework-for-writing-excellent-microservices-and-apis
Make sure the app works locally:
virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt
gunicorn -b 0.0.0.0:8000 app:API
make build
make run
Open http://localhost:8000/number
You can also run:
make test
Ensure that we do not have any pylint issues by running:
make lint
make clean
a. Create .git/hooks/pre-commit
#!/bin/bash
make test
b. Ensure the script is executable:
chmod +x .git/hooks/pre-commit