Skip to content

anuradha99n/Tea-Manager-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tea Manager API

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.

Features

  • 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.

Tech Stack

  • Backend: Spring Boot (Java)
  • Database: MySQL
  • Build Tool: Maven

Installation and Setup

Prerequisites

  • Java 17 or later
  • Maven
  • MySQL
  • Git

Clone the Repository

$ git clone https://github.com/YourUsername/TeaManagerAPI.git
$ cd TeaManagerAPI

Configure the Database

  1. Create a new MySQL database:
    CREATE DATABASE tea_manager;
  2. 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 and Run the Application

  1. Build the project:
    $ mvn clean install
  2. Run the application:
    $ mvn spring-boot:run

Project Structure

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

About

Tea manager app backend API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages