Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 854 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 854 Bytes

FastAPI Project Example

Basic template to develop and test an asynchronous API with FastAPI, Postgres, pytest, and Docker using Test-driven Development.

See also


Install

from source

git clone https://github.com/matheuslfarias/fastapi_crud.git
cd fastapi_crud

You have to install docker and docker-compose, then

docker-compose up -d --build

and finally do the tests:.

docker-compose exec web pytest

Test out the following routes:

  1. http://localhost:8002/ping
  2. http://localhost:8002/docs
  3. http://localhost:8002/notes