Skip to content

Pattptr/dagger-python-app

 
 

Repository files navigation

FastAPI Sample Application

Run the application with Docker Compose

docker compose up

Write to the API

curl -X POST -H "Content-Type: application/json" -d '{"title": "Dune", "author": "Frank Herbert"}' http://localhost:8000/api/books/

Read from the API

curl http://localhost:8000/api/books/

Run tests

docker exec -it fastapi_app bash
pytest # in the container shell

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.5%
  • Dockerfile 1.9%
  • Shell 1.6%