Application with a Thymeleaf Frontend, Django Backend and PostgreSQL Database.
-
Clone the repository:
git clone https://github.com/vivoit00/PuVS-to-do-list cd PuVS-to-do-list/sample/otel-in-action
-
Build and run the containers:
docker-compose up --build
-
Access the services:
- Django Backend:
http:https://localhost:8080
- Thymeleaf Frontend:
http:https://localhost:8090
- Django Backend:
- URL:
/todos/
- Method: GET
- Response: List of todo items in plain text
- URL:
/todos/{toDo}
- Method: POST
- Path Parameter:
toDo
: The name of the todo item to be added
- Response: The added todo item in plain text
- URL:
/todos/{toDo}
- Method: DELETE
- Path Parameter:
toDo
: The name of the todo item to be deleted
- Response: 204 No Content if successful
curl http:https://localhost:8080/todos/
curl -X POST http:https://localhost:8080/todos/NewItem
The docker-compose.yaml
file contains all the needed configurations for frontend, backend
and database