Skip to content

amar-preet/python-crud-fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Sample CRUD API using FastAPI

Running locally

./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

Running in Docker

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

API Docs

Swagger

About

fastapi CRUD operations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published