{"id":18068380,"url":"https://github.com/yasith-chathuranga/posfusion-pos-spring-api","last_synced_at":"2026-02-28T05:35:03.200Z","repository":{"id":258621281,"uuid":"873364442","full_name":"yasith-chathuranga/posfusion-pos-spring-api","owner":"yasith-chathuranga","description":"A reliable and flexible Point of Sale (POS) system built on the strong Spring Framework, designed to easily manage customers, items, and orders.","archived":false,"fork":false,"pushed_at":"2024-10-17T15:04:32.000Z","size":103,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T19:16:03.389Z","etag":null,"topics":["hibernate-jpa","hibernate-validator","jackson-databind","jdk17","logback","modelmapper","postman-collection","spring","spring-data","spring-mvc","spring-mysql","springframework","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/yasith-chathuranga.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-16T03:30:34.000Z","updated_at":"2024-10-17T17:41:21.000Z","dependencies_parsed_at":"2024-10-19T21:58:50.541Z","dependency_job_id":null,"html_url":"https://github.com/yasith-chathuranga/posfusion-pos-spring-api","commit_stats":null,"previous_names":["yasith-chathuranga/posfusion-pos-spring-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasith-chathuranga%2Fposfusion-pos-spring-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasith-chathuranga%2Fposfusion-pos-spring-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasith-chathuranga%2Fposfusion-pos-spring-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasith-chathuranga%2Fposfusion-pos-spring-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yasith-chathuranga","download_url":"https://codeload.github.com/yasith-chathuranga/posfusion-pos-spring-api/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-validator","jackson-databind","jdk17","logback","modelmapper","postman-collection","spring","spring-data","spring-mvc","spring-mysql","springframework","tomcat-server"],"created_at":"2024-10-31T08:06:16.187Z","updated_at":"2026-02-28T05:34:58.180Z","avatar_url":"https://github.com/yasith-chathuranga.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# POSFusion-POS-Spring-API\n\n## Introduction\nA POS RESTful API built with Spring Framework, handling Customer, Item, Order, and OrderDetail management. It supports CRUD operations and transaction management, using Hibernate for ORM and JPA for repository handling.\n\n## Technologies Used\n- **Java 17**\n- **Spring Framework**\n- **Hibernate ORM**\n- **Spring Data JPA**\n- **ModelMapper**\n- **Logback**\n- **MySQL**\n\n## Features\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## Validation\n\nValidation is implemented using Hibernate Validator annotations in the DTO classes to ensure data integrity and correctness.\n\n## Logging\n\nLogging is configured using Logback. Logs are written to both the console and a file.\n\n## Postman Documentation\n\nFor detailed API documentation and testing, please refer to the [Postman API Documentation](https://documenter.getpostman.com/view/37565373/2sAXxV6pte).\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Getting Started\n\n### Prerequisites\nTo run this project, ensure you have the following installed:\n- **Java Development Kit (JDK) 17 or higher**\n- **Apache Tomcat (10.1.24)**\n- **MySQL**\n- **Maven**\n\n### Running the Application\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/yasith-chathuranga/posfusion-pos-spring-api.git\n\n3. Update the MySQL database configuration in `WebAppRootConfig.java`:\n    ```java\n    @Bean\n    public DataSource dataSource() {\n        DriverManagerDataSource dmds = new DriverManagerDataSource();\n        dmds.setDriverClassName(\"com.mysql.cj.jdbc.Driver\");\n        dmds.setUrl(\"jdbc:mysql://localhost:3306/posfusion?createDatabaseIfNotExist=true\");\n        dmds.setUsername(\"root\");\n        dmds.setPassword(\"your_password\");\n        return dmds;\n    }\n\n\n##\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://github.com/yasith-chathuranga\" target=\"_blank\"\u003e\u003cimg src = \"https://img.shields.io/badge/GitHub-100000?style=for-the-badge\u0026logo=github\u0026logoColor=white\"\u003e\u003c/a\u003e\n\u003ca href=\"https://git-scm.com/\" target=\"_blank\"\u003e\u003cimg src = \"https://img.shields.io/badge/Git-100000?style=for-the-badge\u0026logo=git\u0026logoColor=white\"\u003e\u003c/a\u003e\n\u003ca href=\"https://spring.io/projects/spring-framework\" target=\"_blank\"\u003e\u003cimg src = \"https://img.shields.io/badge/Spring_Framework-100000?style=for-the-badge\u0026logo=spring\u0026logoColor=white\"\u003e\u003c/a\u003e\n\u003ca href=\"https://spring.io/projects/spring-data-jpa\" target=\"_blank\"\u003e\u003cimg src = \"https://img.shields.io/badge/Spring_Data_JPA-100000?style=for-the-badge\u0026logo=spring\u0026logoColor=white\"\u003e\u003c/a\u003e\n\u003ca href=\"https://hibernate.org/orm/\" target=\"_blank\"\u003e\u003cimg src = \"https://img.shields.io/badge/Hibernate-100000?style=for-the-badge\u0026logo=Hibernate\u0026logoColor=white\"\u003e\u003c/a\u003e\n\u003ca href=\"https://tomcat.apache.org/\" target=\"_blank\"\u003e\u003cimg src = \"https://img.shields.io/badge/Tomcat-100000?style=for-the-badge\u0026logo=apachetomcat\u0026logoColor=white\"\u003e\u003c/a\u003e\n\u003ca href=\"https://logback.qos.ch/documentation.html\" target=\"_blank\"\u003e\u003cimg src = \"https://img.shields.io/badge/Logback-100000?style=for-the-badge\u0026logo=ko-fi\u0026logoColor=white\"\u003e\u003c/a\u003e\n\u003ca href=\"https://maven.apache.org/download.cgi\" target=\"_blank\"\u003e\u003cimg src = \"https://img.shields.io/badge/Maven-100000?style=for-the-badge\u0026logo=apachemaven\u0026logoColor=white\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.mysql.com/downloads/\" target=\"_blank\"\u003e\u003cimg src = \"https://img.shields.io/badge/Mysql-100000?style=for-the-badge\u0026logo=mysql\u0026logoColor=white\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.postman.com/downloads/\" target=\"_blank\"\u003e\u003cimg src = \"https://img.shields.io/badge/Postman-100000?style=for-the-badge\u0026logo=Postman\u0026logoColor=white\"\u003e\u003c/a\u003e\n\u003c/div\u003e \u003cbr\u003e\n\u003cp align=\"center\"\u003e\n  \u0026copy; 2024 Yasith Chathuranga\n\u003c/p\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasith-chathuranga%2Fposfusion-pos-spring-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyasith-chathuranga%2Fposfusion-pos-spring-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasith-chathuranga%2Fposfusion-pos-spring-api/lists"}