A simple and efficient To-Do List application built with Spring Boot. It allows users to manage their daily tasks with features like adding, updating, retrieving, and deleting to-do items via a RESTful API.
- β Add new to-do tasks
- π View all tasks
- β Mark tasks as completed
- π Update task details
- β Delete tasks
- π§© RESTful API design
- ποΈ Integration with a relational database (H2/MySQL)
Layer | Technology |
---|---|
Backend | Spring Boot, Spring Web, Spring Data JPA |
Database | H2 (in-memory) or MySQL (optional) |
Build | Maven |
Language | Java |
``` spring-boot-todo-application/ βββ src/ β βββ main/ β β βββ java/ β β β βββ com/example/todo/ β β β βββ controller/ β β β βββ model/ β β β βββ repository/ β β β βββ service/ β β βββ resources/ β β βββ application.properties βββ pom.xml ```
Example `application.properties`:
```properties spring.datasource.url=jdbc:h2:mem:testdb spring.datasource.driverClassName=org.h2.Driver spring.datasource.username=sa spring.datasource.password=
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect spring.jpa.hibernate.ddl-auto=update
server.port=8080 ```
```bash mvn clean install mvn spring-boot:run ```
API will be available at:
π `http://localhost:8080\`
Method | Endpoint | Description |
---|---|---|
GET | /api/todos | Get all to-do items |
POST | /api/todos | Create a new to-do |
PUT | /api/todos/{id} | Update a to-do |
DELETE | /api/todos/{id} | Delete a to-do |
Bharani Kumar
GitHub Profile
This project is open-source and free to use.