fastapi-example

It is an example of docker development with FastAPI

Stars
5

FastAPI Example

  • GET '/': Health check.
  • GET '/upload': Upload file page.
  • POST '/upload': Upload multi-file API.
    • Test case in 'tests/'.

Prerequisite

  • Python 3.7+
  • Docker

Development

pip install -r requirements.txt 
pytest tests
python main.py

or

docker-compose up
curl http://localhost:5000/
Related Projects