This repository provides a template for creating a Python Flask REST web service. It is designed to be suitable for both novice and experienced programmers.
Clone the repository onto your local machine.
git clone https://github.com/mahajanankur/flask-template.git
pip install -r requirements.txt
python3 src/app.py
This will run a production level Gunicorn server.
docker-compose up --build
To use the web service, send HTTP requests to the appropriate endpoint using a tool such as cURL or Postman. The endpoints that are currently available are:
/health - Health check of the service.
/api/products - Returns a JSON array of all the products.
If you find a bug or would like to suggest an improvement, please open an issue or create a pull request. All contributions are welcome!
Apache 2.0
Free Software, Hell Yeah!