Skip to content

A simple RESTful To-Do list application built with Spring Boot and JPA. Manage daily tasks with add, update, delete, and complete features. Uses MySQL or H2 for persistence.

Notifications You must be signed in to change notification settings

J0shethan/spring-boot-todo-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

βœ… Spring Boot To-Do Application

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.


πŸš€ Features

  • βž• 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)

πŸ›  Tech Stack

Layer Technology
Backend Spring Boot, Spring Web, Spring Data JPA
Database H2 (in-memory) or MySQL (optional)
Build Maven
Language Java

πŸ“‚ Project Structure

``` spring-boot-todo-application/ β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ main/ β”‚ β”‚ β”œβ”€β”€ java/ β”‚ β”‚ β”‚ └── com/example/todo/ β”‚ β”‚ β”‚ β”œβ”€β”€ controller/ β”‚ β”‚ β”‚ β”œβ”€β”€ model/ β”‚ β”‚ β”‚ β”œβ”€β”€ repository/ β”‚ β”‚ β”‚ └── service/ β”‚ β”‚ └── resources/ β”‚ β”‚ β”œβ”€β”€ application.properties β”œβ”€β”€ pom.xml ```


βš™οΈ Configuration

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 ```


▢️ How to Run

```bash mvn clean install mvn spring-boot:run ```

API will be available at:
πŸ”— `http://localhost:8080\`


πŸ“‘ Sample API Endpoints

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

πŸ™‹β€β™‚οΈ Author

Bharani Kumar
GitHub Profile


πŸ“„ License

This project is open-source and free to use.

About

A simple RESTful To-Do list application built with Spring Boot and JPA. Manage daily tasks with add, update, delete, and complete features. Uses MySQL or H2 for persistence.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published