{"id":23877702,"url":"https://github.com/thekartikeyamishra/task-management-system","last_synced_at":"2026-05-06T00:36:52.292Z","repository":{"id":270221448,"uuid":"909679297","full_name":"thekartikeyamishra/Task-Management-System","owner":"thekartikeyamishra","description":"This project  cover various Spring Boot features and concepts like REST APIs, database integration, dependency injection, profiles, exception handling, and scheduling.","archived":false,"fork":false,"pushed_at":"2024-12-29T13:22:14.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-29T14:27:11.882Z","etag":null,"topics":["h2-database","java","maven","rest-api","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thekartikeyamishra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-29T13:16:38.000Z","updated_at":"2024-12-29T13:23:36.000Z","dependencies_parsed_at":"2024-12-29T14:27:13.714Z","dependency_job_id":"18abba1e-0e4e-4eba-a7df-476b31bc387a","html_url":"https://github.com/thekartikeyamishra/Task-Management-System","commit_stats":null,"previous_names":["thekartikeyamishra/task-management-system"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thekartikeyamishra%2FTask-Management-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thekartikeyamishra%2FTask-Management-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thekartikeyamishra%2FTask-Management-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thekartikeyamishra%2FTask-Management-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thekartikeyamishra","download_url":"https://codeload.github.com/thekartikeyamishra/Task-Management-System/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240241796,"owners_count":19770463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["h2-database","java","maven","rest-api","spring-boot"],"created_at":"2025-01-03T20:17:13.974Z","updated_at":"2025-10-19T23:21:24.809Z","avatar_url":"https://github.com/thekartikeyamishra.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Task Management System\n\nA simple Task Management System built with **Spring Boot** to demonstrate core features such as REST APIs, Dependency Injection, Database Integration, Profiles, Exception Handling, and Scheduling.\n\n---\n\n## Features\n\n1. **REST API**: Manage tasks using endpoints.\n2. **Dependency Injection**: Decoupled service and controller layers.\n3. **H2 Database Integration**: In-memory database for storing tasks.\n4. **Profiles**: Separate configurations for development and production environments.\n5. **Exception Handling**: Global exception handling for consistent error responses.\n6. **Task Scheduling**: Periodic execution of scheduled tasks.\n\n---\n\n## Technology Stack\n\n- **Java**\n- **Spring Boot**\n- **H2 Database**\n- **Maven**\n\n---\n\n## Prerequisites\n\n1. **Java JDK 17 or higher**\n2. **Maven**\n3. **Visual Studio Code** with Java Extension Pack\n\n---\n\n## Setup Instructions\n\n1. Clone the repository:\n   ```bash\n   git clone [thekartikeyamishra/Task-Management-System](https://github.com/thekartikeyamishra/Task-Management-System)\n   cd task-management-system\n   ```\n\n2. Import the project into your IDE (e.g., VSCode).\n\n3. Build the project:\n   ```bash\n   mvn clean install\n   ```\n\n4. Run the application:\n   ```bash\n   mvn spring-boot:run\n   ```\n\n5. Access the H2 Database Console:\n   - URL: `http://localhost:8080/h2-console`\n   - JDBC URL: `jdbc:h2:mem:testdb`\n\n---\n\n## API Endpoints\n\n### 1. Get All Tasks\n**Request**: `GET /tasks`  \n**Response**:\n```json\n[\n  {\n    \"id\": 1,\n    \"name\": \"Learn Spring Boot\",\n    \"completed\": false\n  }\n]\n```\n\n### 2. Add a Task\n**Request**: `POST /tasks`  \n**Body**:\n```json\n{\n  \"name\": \"Learn Spring Boot\",\n  \"completed\": false\n}\n```\n**Response**:\n```json\n{\n  \"id\": 1,\n  \"name\": \"Learn Spring Boot\",\n  \"completed\": false\n}\n```\n\n---\n\n## Configuration\n\n### Default Configuration (`application.properties`):\n```properties\nspring.datasource.url=jdbc:h2:mem:testdb\nspring.datasource.driverClassName=org.h2.Driver\nspring.jpa.hibernate.ddl-auto=update\nspring.h2.console.enabled=true\nspring.h2.console.path=/h2-console\n```\n\n### Development Profile (`application-dev.properties`):\n```properties\nserver.port=8081\n```\n\n### Production Profile (`application-prod.properties`):\n```properties\nserver.port=8082\n```\n\nSwitch profiles during runtime:\n```bash\nmvn spring-boot:run -Dspring-boot.run.profiles=dev\n```\n\n---\n\n## Scheduled Tasks\n\nThe application includes a scheduled task that runs every 5 seconds and prints a message to the console.\n\n---\n\n## Exception Handling\n\nGlobal exception handling is implemented using `@ControllerAdvice`. For example, if an error occurs, the response will look like this:\n```json\n{\n  \"message\": \"Error: Something went wrong!\"\n}\n```\n\n---\n\n## Future Enhancements\n\n1. Add authentication and authorization.\n2. Integrate with an external database like MySQL or PostgreSQL.\n3. Implement unit and integration tests.\n\n---\n\n- * LinkedIn : https://www.linkedin.com/in/thekartikeyamishra/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthekartikeyamishra%2Ftask-management-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthekartikeyamishra%2Ftask-management-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthekartikeyamishra%2Ftask-management-system/lists"}