Learning the main concepts of FastAPI and how to use it to quickly create web APIs that implement best practices by default.
FastAPI is the framework you’ll use to build your API, and Uvicorn is the server that will use the API you build to serve requests.
$ uvicorn main:app --reload
The -reload
command means that when you update your application code, the server will reload automatically.
$ docker run -p 8000:8000 fast-api:v1
- Set up an Ingress controller in Docker Desktop environment on a Mac
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.1.0/deploy/static/provider/cloud/deploy.yaml
$ kubectl apply -f ingress.yaml
- Apply configurations to run in local environment (I am using Docker Desktop on my Mac)
$ kubectl apply -f k8s-config-initial