Simple FastApi demo.
Made to be deployed anywhere!
In order to use this with Docker, you need to:
# Give your image with the name of you choice, here I used "demo-api"
docker build -t demo-api .# -e PORT=5000 --> I give the container an env variable "PORT" with a value of 5000
# -p 5000:5000 --> Link your localhost's port 5000 to the container's port 5000
docker run -e PORT=5000 -p 5000:5000 -it demo-apiYou can now try your API at: localhost:5000/docs