Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fabregas201307/fastapi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastapi-example CircleCI

A simple example of using Fast API in Python.

Preconditions:

  • Python 3

Clone the project

git clone https://github.com/marciovrl/fastapi-example.git

Run local

Install dependencies

pip install -r requirements.txt

Run server

uvicorn app.main:app --reload

Run test

pytest app/test.py

Run with docker

Run server

docker-compose up -d --build

Run test

docker-compose exec app pytest test/test.py

API documentation (provided by Swagger UI)

http://127.0.0.1:8002/docs

Run server

docker-compose exec db psql --username=fastapi --dbname=fastapi

About

A simple example of using Fast API in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.8%
  • Makefile 8.2%
  • Dockerfile 8.0%