{"id":19440983,"url":"https://github.com/raaz2/tci-assignment","last_synced_at":"2026-04-13T15:30:57.358Z","repository":{"id":244508027,"uuid":"815444464","full_name":"Raaz2/TCI-Assignment","owner":"Raaz2","description":"This project is a Spring Boot application designed to manage employees and departments within a company.","archived":false,"fork":false,"pushed_at":"2024-06-15T11:58:54.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T07:38:20.945Z","etag":null,"topics":["gradle","java","mysql","spring-boot"],"latest_commit_sha":null,"homepage":"https://drive.google.com/file/d/1BVNapkOTZksyWfFQsPYq1e1y4W5HVisG/view?usp=sharing","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/Raaz2.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-06-15T07:17:25.000Z","updated_at":"2024-06-15T11:58:57.000Z","dependencies_parsed_at":"2024-06-15T08:31:56.550Z","dependency_job_id":"18027c8e-feda-4477-b0f4-93290292e74a","html_url":"https://github.com/Raaz2/TCI-Assignment","commit_stats":null,"previous_names":["raaz2/tci-assignment"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Raaz2/TCI-Assignment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raaz2%2FTCI-Assignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raaz2%2FTCI-Assignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raaz2%2FTCI-Assignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raaz2%2FTCI-Assignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Raaz2","download_url":"https://codeload.github.com/Raaz2/TCI-Assignment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raaz2%2FTCI-Assignment/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265562354,"owners_count":23788512,"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":["gradle","java","mysql","spring-boot"],"created_at":"2024-11-10T15:33:35.505Z","updated_at":"2026-04-13T15:30:52.328Z","avatar_url":"https://github.com/Raaz2.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Employee Management System\n\nThis project is a Spring Boot application designed to manage employees and departments within a company. It provides RESTful APIs for adding employees and retrieving eligible employees for bonuses based on specific criteria.\n\n## Features\n\n- **Add Employees**: Endpoint to add multiple employees in bulk.\n- **Retrieve Eligible Employees**: Endpoint to fetch employees eligible for bonuses based on a given date.\n- **Department Management**: Supports associating employees with departments.\n- **Error Handling**: Provides basic error handling for unexpected scenarios.\n\n## Technologies Used\n\n- **Spring Boot**: Framework for creating production-grade Spring-based applications.\n- **Spring Data JPA**: Simplifies the implementation of data access layer.\n- **MySQL Database**: SQL database for development and testing purposes.\n- **Lombok**: Java library to reduce boilerplate code.\n- **JUnit 5**: Testing framework for unit testing.\n\n## Project Structure\n\n- **Controller Layer**: Handles incoming HTTP requests and delegates business logic to the service layer.\n- **Service Layer**: Contains business logic, interacts with repositories for data access.\n- **Model Layer**: Defines entities (`Employee` and `Department`) and their relationships.\n- **Exception Handling**: Basic exception handling for better error reporting.\n\n## Setup\n\nTo run this project locally, follow these steps:\n\n1. **Clone the repository**:\n   ```bash\n   git clone \u003crepository_url\u003e\n   cd employee-management-system\n   ```\n\n2. **Build the project**:\n   ```bash\n   ./gradlew build\n   ```\n\n3. **Run the application**:\n   ```bash\n   ./gradlew bootRun\n   ```\n   The application will start on `http://localhost:8080`.\n\n4. **Access API endpoints**:\n   - Add employees: `POST http://localhost:8080/tci/employee-bonus`\n   - Get eligible employees: `GET http://localhost:8080/tci/employee-bonus?date=\u003cdateString\u003e`\n\n## API Documentation\n\n- **POST `/tci/employee-bonus`**\n  - Request Body: JSON payload with a key `\"employees\"` containing a list of employees.\n  - Response: Returns status `201 Created` on success or `400 Bad Request` if the payload is invalid.\n\n- **GET `/tci/employee-bonus?date=\u003cdateString\u003e`**\n  - Query Parameters: `date` (required) - Date string in format `\"MMM-dd-yyyy\"`.\n  - Response: Returns JSON formatted response with eligible employees categorized by currency. Possible status codes: `200 OK` or `500 Internal Server Error`.\n\n## Additional Notes\n\n- Ensure the date format for the `date` query parameter in the GET request (`MMM-dd-yyyy`) matches the expected format.\n- Error handling is currently minimal and can be extended based on specific use cases and exceptions encountered.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraaz2%2Ftci-assignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraaz2%2Ftci-assignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraaz2%2Ftci-assignment/lists"}