A backend service for a Point of Sale (POS) system designed to manage customer, item, and order data efficiently. This service facilitates the creation, retrieval, updating, and deletion of records, providing robust capabilities for handling orders and monitoring application health.
The following technologies were used in the development of the Backend Server:
- Java 17
- Spring Framework
- Hibernate ORM
- Spring Web MVC
- Spring Data JPA
- MySQL
- Maven
- Tomcat
-
Customer Management:
- Create new customer records.
- Read and retrieve customer details.
- Update existing customer information.
- Delete customer records as needed.
-
Item Management:
- Add new items to the inventory.
- Retrieve item details.
- Update item information and pricing.
- Remove items from the inventory.
-
Order Handling:
- Save new orders with customer and item details.
- Retrieve order history and status.
-
Health Check:
- Verify the application's health status.
- Efficient Management: Streamlines customer and item management with CRUD operations, improving operational efficiency.
- Robust Order Handling: Facilitates accurate and reliable order processing, enhancing sales and inventory tracking.
- Reliable Data Storage: Uses Spring and JPA for stable data management and persistence.
- Scalable Architecture: Built on spring, Java, and Tomcat, allowing for easy scaling as business needs grow.
To install and run the System, follow these steps:
-
Clone the repository:
git clone https://github.com/jlokitha/POS-System-Backend-v2.git
-
Navigate to the project directory:
cd POS-System-Backend-v2
-
Open the project in IntelliJ IDEA:
idea .
-
Configure Tomcat:
- Go to
Run
>Edit Configurations
. - Click the
+
button and selectTomcat Server
>Local
. - Set the Tomcat Home directory to your Tomcat installation path.
- Apply and save the configuration.
- Go to
-
Update Database Credentials:
-
Open the
src/main/java/lk/ijse/possystembackendv2/config/WebAppRootConfig.java
file. -
Update the MySQL username and password:
@Bean public DataSource dataSource() { DriverManagerDataSource dmds = new DriverManagerDataSource(); dmds.setDriverClassName("com.mysql.cj.jdbc.Driver"); dmds.setUrl("jdbc:mysql://localhost:3306/pos_system?createDatabaseIfNotExist=true"); dmds.setUsername("Your Username"); dmds.setPassword("Your Password"); return dmds; }
-
-
Run Tomcat:
- In IntelliJ IDEA, select the Tomcat configuration you created.
- Click the
Run
button (green play icon) to start Tomcat. - The application should be deployed and accessible from your browser.
You can find the API documentation for this project at API Documentation.
This project is licensed under the MIT License - see the MIT License file for details.
© 2024 Janindu Lokitha