Switch into the root directory of the project and run:
docker-compose up
The docker-compose.yml will start a MariaDB container on port 3306 (change the port in the docker-compose.yml if neccessary) and then build the NestJS backend. After the start of the backend the frontend gets pulled and started.
- Database: 3306 (MariaDB)
- Backend: 8080 (NestJS)
- Frontend: 8090 (Spring)
To reconfigure the ports just edit the port numbers in the docker-compose.yml.
Do not edit the container names without editing the API-Endpoints or the system wouldn't work anymore.
Returns all todo objects of the database.
Returns the todo object with the {id}
(Integer number).
Returns the amount of the todo objects in the database.
Insert a todo object into the database. Provide the object as json in the request body. A sample input would be:
{
"todo": "Verteilte Systeme Abgabe",
"priority": 2
}
Inserts a new todo object into the database with the {name}
as name and the priority 2.
Deletes the todo object of the request body. A sample input would be:
{
"todo": "Verteilte Systeme Abgabe",
"priority": 2
}
Deletes the todo object with the {id}
.