A Spring Boot-based Task Management application that helps you organize and manage your tasks efficiently.
- Java 17 or higher
- Maven 3.6.3 or higher
- MySQL 8.0 or higher
- Your favorite IDE (IntelliJ IDEA, Eclipse, or VS Code)
-
Clone the repository
git clone <repository-url> cd TaskManagement
-
Database Setup
- Make sure MySQL server is running
- Create a new database named
tasksdb(or update the database name inapplication.properties)
CREATE DATABASE tasksdb;
-
Configure Application Properties
- Open
src/main/resources/application.properties - Update the following properties if needed:
spring.datasource.username=your_username spring.datasource.password=your_password
- Open
-
Build the Application
mvn clean install
-
Run the Application
mvn spring-boot:run
The application will start on
http://localhost:8080
GET /api/tasks- Get all tasksGET /api/tasks/{id}- Get a task by IDPOST /api/tasks- Create a new taskPUT /api/tasks/{id}- Update an existing taskDELETE /api/tasks/{id}- Delete a task
src/
├── main/
│ ├── java/
│ │ └── com/
│ │ └── telusko/
│ │ └── taskmanagement/
│ │ ├── config/ # Configuration classes
│ │ ├── controller/ # REST controllers
│ │ ├── entity/ # JPA entities
│ │ ├── repository/ # Data repositories
│ │ ├── service/ # Business logic
│ │ └── TaskManagementApplication.java
│ └── resources/
│ ├── static/ # Static resources
│ ├── templates/ # Thymeleaf templates (if any)
│ └── application.properties
└── test/ # Test files
- The application uses Hibernate for ORM
- Uses Spring Data JPA for database operations
- Implements RESTful API design principles
- Follows MVC architecture pattern
- If you encounter database connection issues, verify your MySQL credentials in
application.properties - Make sure the MySQL server is running and accessible
- Check the application logs for detailed error messages
This project is licensed under the MIT License - see the LICENSE file for details.