The Tea Manager API is designed to manage and streamline the operations of small-scale tea plantations. It provides functionalities for managing employees, recording tea picking data, tracking pricing details, and calculating salaries for employees based on their work.
- Employee Management: Add, update, and manage employee details.
- Tea Picking Records: Record daily tea picking data for employees.
- Pricing Management: Set and manage price per kilo details with effective date ranges.
- Salary Calculation: Automatically calculate and save salaries based on tea picking data and pricing details.
- Backend: Spring Boot (Java)
- Database: MySQL
- Build Tool: Maven
- Java 17 or later
- Maven
- MySQL
- Git
$ git clone https://github.com/YourUsername/TeaManagerAPI.git
$ cd TeaManagerAPI- Create a new MySQL database:
CREATE DATABASE tea_manager;
- Update the database connection details in
src/main/resources/application.properties:spring.datasource.url=jdbc:mysql://localhost:3306/tea_manager spring.datasource.username=your_username spring.datasource.password=your_password spring.jpa.hibernate.ddl-auto=update
- Build the project:
$ mvn clean install
- Run the application:
$ mvn spring-boot:run
TeaManagerAPI/
|│ pom.xml # Maven configuration
|└── src/
|└── main/
| |└── java/com/teamanager/
| | |└── controllers/ # REST Controllers
| | |└── services/ # Business Logic
| | |└── models/ # Entities
| | |└── repositories/ # JPA Repositories
| |└── resources/
| application.properties # Configuration