Requirements for execution and development:
- Java 21 (Backend)
- Node 20 (Frontend)
The Spring Boot backend can be started using Gradle (using default port 8080):
cd backend
./gradlew bootRun
Executing the unit tests:
cd backend
./gradlew check
The React frontend is started with NPM:
cd frontend
npm install
npm run dev
- Java
- Groovy
- Spring Boot 3
- H2 Database
- accessible in browser: http://localhost:8080/todo-service/console
- JUnit
- Spock
The backend provides two simple REST endpoints:
Purpose | URL | Http Method | Output |
---|---|---|---|
Get all todo lists | todo-service/lists | GET | List of todo-lists and todos, e.g.:
|
Toggle completed-state of todo | todo-service/todos/${id}/toggle | POST | Edited todo, e.g.:
|