How viniaguiar1/spring-todo-list works
Project type and purpose
• This is a backend REST‐API service (no UI code here) implementing a To-Do List using Spring Boot (Java 17).
• It follows an MVC-style, layered approach: Controllers expose HTTP endpoints, Spring Data JPA repositories handle persistence to an in-memory H2 database, and a Servlet Filter enforces request-level authentication (password hashing with Bcrypt is set up for future user auth).
File structure
• Top-level artifacts:
• DockerFile, pom.xml, Maven wrapper (.mvn, mvnw) – build and containerization
• src/main/java/br/com/viniciusaguiar/todolist – code for controllers, filters, models, repos, exception handler, utils
• src/main/resources/application.properties – Spring/H2 config
• src/test – Spring Boot integration/test classes
• Key directories:
• filter – implements authentication filter (FilterTaskAuth)
• task & user – each with Model, Repository interface, Controller
• errors – centralized exception handler (ExceptionHandlerController)
• utils – helper code
README insights
• Confirms Spring Boot 3.3.3, Spring Data JPA, H2 in-memory, Lombok, Bcrypt.
• Endpoints: /tasks (GET, POST), /tasks/{id} (PUT, DELETE).
• H2 console endpoint and credentials.