How wajahatsiddiqui/ai-todo-cloud-application works
Project Type and Purpose
• This is a standalone back-end REST API service (“Todo List REST API”) built with Spring Boot.
• It exposes CRUD endpoints for managing “todo” items and persists data in a PostgreSQL database via Spring Data JPA and HikariCP.
File Structure Analysis
• Top-level build and config files: pom.xml, Maven wrapper, .gitignore
• src/main/java/com/wajahat/todo:
• TodoApplication.java – Spring Boot entry point
• controller/TodoController.java – REST API layer
• service/TodoService.java – business logic layer
• repository/TodoRepository.java – data access layer (Spring Data JPA)
• model/Todo.java – JPA entity
• src/main/resources/application.properties – application and DB configuration
• src/main/resources/schema.sql – initial DB schema (optional)
• src/test/java – integration tests
README Insights
• Technologies: Java 17, Spring Boot 3.5.5, Spring Data JPA, PostgreSQL 14+, HikariCP, Lombok, Maven.
• Runtime: Embedded Tomcat on port 9000, CORS enabled.
• Endpoints under /api/todos with full CRUD.