Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task Management Application

A Spring Boot-based Task Management application that helps you organize and manage your tasks efficiently.

Prerequisites

  • Java 17 or higher
  • Maven 3.6.3 or higher
  • MySQL 8.0 or higher
  • Your favorite IDE (IntelliJ IDEA, Eclipse, or VS Code)

Local Setup

  1. Clone the repository

    git clone <repository-url>
    cd TaskManagement
  2. Database Setup

    • Make sure MySQL server is running
    • Create a new database named tasksdb (or update the database name in application.properties)
    CREATE DATABASE tasksdb;
  3. 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
  4. Build the Application

    mvn clean install
  5. Run the Application

    mvn spring-boot:run

    The application will start on http://localhost:8080

API Endpoints

  • GET /api/tasks - Get all tasks
  • GET /api/tasks/{id} - Get a task by ID
  • POST /api/tasks - Create a new task
  • PUT /api/tasks/{id} - Update an existing task
  • DELETE /api/tasks/{id} - Delete a task

Project Structure

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

Development

  • The application uses Hibernate for ORM
  • Uses Spring Data JPA for database operations
  • Implements RESTful API design principles
  • Follows MVC architecture pattern

Troubleshooting

  • 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

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages