A Sample CRUD API using FastAPI
./bootstrap.sh
This will create a directory a virtualenv env
directory.
Use the env
directory above:
source env/bin/activate
To start the application:
uvicorn app.main:app --reload
Go to swagger docs http://127.0.0.1:8000/docs
To run the application in docker, first build then run:
docker build -t <tag-name> .
docker run -d --name mycontainer -p 80:80 <tag-name>
http://127.0.0.1/redoc