{"id":18068392,"url":"https://github.com/sasmithx/spring-pos","last_synced_at":"2025-04-11T23:24:17.667Z","repository":{"id":258228478,"uuid":"867655106","full_name":"sasmithx/Spring-POS","owner":"sasmithx","description":"A Spring-based backend for a Point of Sale (POS) system provides a robust and scalable architecture for managing key business operations such as customer management, inventory control, order processing, and transaction handling..","archived":false,"fork":false,"pushed_at":"2024-10-17T07:27:48.000Z","size":2415,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T19:16:00.223Z","etag":null,"topics":["hibernate-jpa","hibernate-validation","hibernate-validator","jdk21","jparepository","logback","modelmapper","restful-api","spring","spring-data-jpa","spring-mvc","spring-mvc-framework","spring-mysql","spring-pos-api","tomcat-server"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sasmithx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-10-04T13:22:00.000Z","updated_at":"2025-01-02T09:00:48.000Z","dependencies_parsed_at":"2024-10-19T04:24:47.433Z","dependency_job_id":null,"html_url":"https://github.com/sasmithx/Spring-POS","commit_stats":null,"previous_names":["sasmithx/spring-pos"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasmithx%2FSpring-POS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasmithx%2FSpring-POS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasmithx%2FSpring-POS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasmithx%2FSpring-POS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sasmithx","download_url":"https://codeload.github.com/sasmithx/Spring-POS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248493708,"owners_count":21113305,"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":["hibernate-jpa","hibernate-validation","hibernate-validator","jdk21","jparepository","logback","modelmapper","restful-api","spring","spring-data-jpa","spring-mvc","spring-mvc-framework","spring-mysql","spring-pos-api","tomcat-server"],"created_at":"2024-10-31T08:06:17.874Z","updated_at":"2025-04-11T23:24:17.644Z","avatar_url":"https://github.com/sasmithx.png","language":"Java","readme":"\n![Logo](https://upload.wikimedia.org/wikipedia/commons/4/44/Spring_Framework_Logo_2018.svg)\n\n# Spring POS\n\nThis is a Spring-based backend for a Point of Sale (POS) system. It provides RESTful APIs for managing customers, items, orders, and transactions. The project uses Spring, JPA, Hibernate,Tomcat, and MySQL for database connectivity.\n\n\n## Features\n\n- Customer Management (Create, Read, Update, Delete)\n- Item Management (Create, Read, Update, Delete)\n- Order and Transaction Processing\n- Exception Handling and Validation using Hibernate Validator\n- JSON Response formatting\n\n\n## Technologies\n\n- **Java Vesion:** JDK 21\n- **Backend Framework:** Spring\n- **Database:** MySQL\n- **ORM:** JPA, Hibernate\n- **Server:** Apache Tomcat 11.0.0-M26\n- **Validation:** Hibernate Validator\n- **Logger:** Logback\n\n\n## Architecture Overview\n- **Entities:** Representations for Customer, Item, Order, and OrderDetail\n- **Data Transfer Objects (DTOs):** Includes CustomerDTO, ItemDTO, and OrderDTO\n- **Repositories:** Interfaces for database operations, such as CustomerRepository, ItemRepository, OrderRepository, and OrderDetailRepository\n- **Services:** Business logic for managing customers, items, and orders in CustomerService, ItemService, and OrderService\n- **Controllers:** API endpoints for handling customer, item, and order-related requests via CustomerController, ItemController, and OrderController\n- **Utilities:** Helper classes for tasks like object mapping (Mapping) and application utilities (AppUtil)\n- **Exceptions:** Custom error handling mechanisms for specific scenarios\n- **Configuration:** Application setup classes like WebAppConfig and WebAppRootConfig\n\n## Validation\nData validation is enforced through Hibernate Validator annotations within the DTO classes, ensuring both data integrity and accuracy.\n\n## Logging\nLogging is set up with Logback, capturing logs both in the console and in a dedicated file.\n\n## Custom Exceptions\nCustom exceptions are designed to address specific error situations, delivering clear and informative error messages to the client.\n\n## Setup and Configuration\n\n**Prerequisites**\n\n- **JDK 21**\n- **Tomcat 11**\n- **MySQL server**\n- **Maven**\n\n\n## Clone the repository:\n\n\n\n```bash\n  https://github.com/sasmithx/Spring-POS.git\n```\n## Database Configuration\n\n\u003cimg src=\"https://github.com/sasmithx/Spring-POS/blob/main/src/main/resources/db/db.png\" width=\"600px\" height=\"auto\"\u003e\n\n## API Documentation\n\nTo view this project API Documentation\n\nRefer to the [ Postman API Documentation](https://documenter.getpostman.com/view/35385442/2sAXxV4p5T) for detailed API endpoints and usage instructions.\n\n\n## License\n\nThis project is licensed under the MIT License - see the [ MIT License](https://github.com/sasmithx/Spring-POS?tab=MIT-1-ov-file#) file for details.\n\n##\n\u003cdiv align=\"center\"\u003e\n\n[![Tech Stack](https://skillicons.dev/icons?i=git,github,spring,hibernate,maven,mysql,postman)](https://skillicons.dev)\n\u003c/div\u003e \u003cbr\u003e\n\u003cp align=\"center\"\u003e\n  \u0026copy; 2024 Sasmith Manawadu\n\u003c/p\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsasmithx%2Fspring-pos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsasmithx%2Fspring-pos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsasmithx%2Fspring-pos/lists"}