This is a Flask API starter serves as a foundation for building new software applications, provides basic structure and functionality to help developer to get started quickly.
cp .env.example .env
python -c 'import os; print(os.urandom(8))'
# Update SECRET_KEY= in .env file
pip install -r requirements.txt
$ make
clean Remove Python file artifacts.
mvenv Create virtual environment.
install Install dependencies.
upgrade Upgrade dependencies.
lint Lint project.
pretty Prettify project.
run Run application.
debug Debug application.
test Run tests.
$ make run
* Serving Flask app 'src/app'
* Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Running on http://127.0.0.1:5000
Press CTRL+C to quit
curl -X GET localhost:5000
curl -X POST -H "Content-Type: application/json" \
-d '{"hello": "request"}' localhost:5000/health
@cham11ng