We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68294c9 commit d9f5b61Copy full SHA for d9f5b61
README.md
@@ -1 +1,24 @@
1
+## Run the application with Docker Compose
2
3
+```
4
+docker compose up
5
6
+
7
+## Write to the API
8
9
10
+curl -X POST -H "Content-Type: application/json" -d '{"title": "Dune", "author": "Frank Herbert"}' http://localhost:8000/api/books/
11
12
13
+## Read from the API
14
15
16
+curl http://localhost:8000/api/books/
17
18
19
+## Run tests
20
21
22
+docker exec -it fastapi_app bash
23
+pytest # in the container shell
24
0 commit comments