{"id":24310491,"url":"https://github.com/lahcenezzara/tasky","last_synced_at":"2026-04-10T01:04:20.940Z","repository":{"id":272871050,"uuid":"912191159","full_name":"LahcenEzzara/tasky","owner":"LahcenEzzara","description":"Tasky - Task Management System","archived":false,"fork":false,"pushed_at":"2025-01-05T21:03:15.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T06:15:06.986Z","etag":null,"topics":["api-documentation","best-practices","code-quality","error-handling","integration-tests","jacoco","java","junit","maven","mockito","mysql","postman","rest-api","security","software-quality","sonarqube","spring-boot","task-management","testing","unit-tests"],"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/LahcenEzzara.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":"2025-01-04T21:30:22.000Z","updated_at":"2025-01-05T21:08:53.000Z","dependencies_parsed_at":"2025-01-17T06:15:10.363Z","dependency_job_id":"40efeac8-44b9-4d5f-b7e5-61e090b813a1","html_url":"https://github.com/LahcenEzzara/tasky","commit_stats":null,"previous_names":["lahcenezzara/tasky"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LahcenEzzara%2Ftasky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LahcenEzzara%2Ftasky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LahcenEzzara%2Ftasky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LahcenEzzara%2Ftasky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LahcenEzzara","download_url":"https://codeload.github.com/LahcenEzzara/tasky/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242483272,"owners_count":20135784,"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":["api-documentation","best-practices","code-quality","error-handling","integration-tests","jacoco","java","junit","maven","mockito","mysql","postman","rest-api","security","software-quality","sonarqube","spring-boot","task-management","testing","unit-tests"],"created_at":"2025-01-17T06:15:05.745Z","updated_at":"2025-12-30T22:54:44.990Z","avatar_url":"https://github.com/LahcenEzzara.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **Tasky - Task Management System**\n\n## **Version 2.0**\n\nTasky is a simple yet powerful task management system built with **Spring Boot** and **MySQL**. It allows users to manage tasks and users through a RESTful API. This version includes significant improvements in code quality, security, and maintainability, along with enhanced test coverage and documentation.\n\n---\n\n## **Features**\n\n### **Task Management**\n- **Create, read, update, and delete tasks** with details such as title, description, priority, and due date.\n- Assign tasks to specific users.\n- Mark tasks as completed to track progress.\n\n### **User Management**\n- **Create, read, update, and delete users** with details such as name and email.\n- Retrieve user-specific information, including assigned tasks.\n\n### **API Endpoints**\n- RESTful API for tasks and users.\n- Secure endpoints with role-based access control.\n\n### **Code Quality Improvements**\n- Refactored code to eliminate **code smells** and **duplication**.\n- Enhanced **security** by implementing password protection and secure coding practices.\n- Improved **error handling** with global exception management.\n\n### **Testing**\n- Comprehensive **unit tests** and **integration tests** for all critical functionality.\n- Increased **test coverage** to **95.6%** using **JUnit 5** and **Mockito**.\n- Added **assertions** to validate the behavior of methods.\n\n### **Documentation**\n- Added **Javadoc** comments for all public methods and classes.\n- Improved **inline comments** to explain complex logic.\n- Updated **README** with detailed setup and usage instructions.\n\n---\n\n## **Technologies**\n\n- **Backend**: Spring Boot 3.3.7\n- **Database**: MySQL\n- **Build Tool**: Maven\n- **Testing**: JUnit 5, Mockito, Jacoco (for coverage)\n- **Code Quality**: SonarQube (for static code analysis)\n- **API Documentation**: Postman (for testing)\n- **Version Control**: Git\n\n---\n\n## **Setup Instructions**\n\n### **Prerequisites**\n- Java 17 or higher\n- MySQL 8.0 or higher\n- Maven 3.8 or higher\n\n### **Steps to Run the Application**\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/LahcenEzara/tasky.git\n   ```\n2. Navigate to the project directory:\n   ```bash\n   cd tasky\n   ```\n3. Configure the database:\n  - Update the `application.properties` file with your MySQL credentials.\n  - Create a database named `tasky_db` in MySQL.\n4. Build the project:\n   ```bash\n   mvn clean install\n   ```\n5. Run the application:\n   ```bash\n   mvn spring-boot:run\n   ```\n6. Access the API at `http://localhost:8080`.\n\n---\n\n## **API Endpoints**\n\n### **Task Endpoints**\n- **GET** `/tasks` - Retrieve all tasks.\n- **POST** `/tasks` - Create a new task.\n- **PUT** `/tasks/{id}` - Update an existing task.\n- **DELETE** `/tasks/{id}` - Delete a task.\n\n### **User Endpoints**\n- **GET** `/users` - Retrieve all users.\n- **POST** `/users` - Create a new user.\n- **PUT** `/users/{id}` - Update an existing user.\n- **DELETE** `/users/{id}` - Delete a user.\n- **GET** `/users/{id}/email` - Retrieve the email of a specific user.\n\n---\n\n## **Code Quality and Testing**\n\n### **SonarQube Integration**\n- Integrated **SonarQube** for continuous code quality analysis.\n- Addressed **bugs**, **vulnerabilities**, and **code smells** identified by SonarQube.\n- Achieved a **Quality Gate Pass** in Version 2.0.\n\n### **Test Coverage**\n- Increased test coverage to **95.6%**.\n- Added comprehensive unit tests for controllers, services, and repositories.\n- Used **Mockito** for mocking dependencies during testing.\n\n---\n\n## **Future Work**\n- Continue increasing test coverage to ensure all edge cases are covered.\n- Explore additional SonarQube features, such as custom quality profiles and rules.\n\n---\nCopyright © 2025 **Tasky Team**. All rights reserved.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flahcenezzara%2Ftasky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flahcenezzara%2Ftasky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flahcenezzara%2Ftasky/lists"}