Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 590 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 590 Bytes

FastAPI Tutorial

This repo is for learning how to use FastAPI.

Tutorial

The code in this tutorial is found in the official documentation for FastAPI: https://fastapi.tiangolo.com/.

Docker

Building the docker image

sudo docker build -t fastapi-image .

Starting the docker container

docker run -p 80:80 -it fastapi-image

Running the app locally

Requirements

Make sure you have installed the requirements found in requirements.txt in a virtual environment using tools such as conda or virtualenv.

Running the code

uvicorn main:app --reload