Skip to content

gilgamesh7/fastapi-pytest-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastapi-pytest-crud

Links

Run the app

VDI

uvicorn main:app --reload (If main not present)
run main.py from vscode

CLI Docker

docker-compose up -d --build

Access App

Local Docker

http://localhost:8002/ping

Docker Compose if not using VScode

docker-compose up -d --build

Check database on Docker

  • docker-compose exec db psql --username=hello_fastapi --dbname=hello_fastapi_dev
  • List of databases : \l
  • Connect : c hello_fastapi_dev
  • List if relations : \dt

Run test on Docker

docker-compose exec web pytest .

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published