{"id":19625821,"url":"https://github.com/apsarawitharana/aad-assignment-javaee-pos-backend","last_synced_at":"2025-10-14T00:32:12.118Z","repository":{"id":251962359,"uuid":"833700298","full_name":"ApsaraWitharana/AAD-Assignment-JavaEE-Pos-Backend","owner":"ApsaraWitharana","description":"The back-end of the Rice Milling Management system is implemented using JavaEE and is configured to run on the Apache Tomcat server. It provides the server-side logic for handling data processing, business rules, and database interactions.","archived":false,"fork":false,"pushed_at":"2024-08-13T11:00:50.000Z","size":216,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-25T18:11:33.062Z","etag":null,"topics":["apache-tomcat-server","java","javaee","mysql-database"],"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/ApsaraWitharana.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-07-25T15:08:55.000Z","updated_at":"2024-09-29T08:19:33.000Z","dependencies_parsed_at":"2024-08-13T13:29:34.194Z","dependency_job_id":"cfaf6ea4-7cc1-4182-a758-a3ca3f2dddfe","html_url":"https://github.com/ApsaraWitharana/AAD-Assignment-JavaEE-Pos-Backend","commit_stats":null,"previous_names":["apsarawitharana/aad-assignment-javaee-pos-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ApsaraWitharana/AAD-Assignment-JavaEE-Pos-Backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApsaraWitharana%2FAAD-Assignment-JavaEE-Pos-Backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApsaraWitharana%2FAAD-Assignment-JavaEE-Pos-Backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApsaraWitharana%2FAAD-Assignment-JavaEE-Pos-Backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApsaraWitharana%2FAAD-Assignment-JavaEE-Pos-Backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ApsaraWitharana","download_url":"https://codeload.github.com/ApsaraWitharana/AAD-Assignment-JavaEE-Pos-Backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApsaraWitharana%2FAAD-Assignment-JavaEE-Pos-Backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017353,"owners_count":26086052,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["apache-tomcat-server","java","javaee","mysql-database"],"created_at":"2024-11-11T11:43:33.802Z","updated_at":"2025-10-14T00:32:12.097Z","avatar_url":"https://github.com/ApsaraWitharana.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://git.io/typing-svg\"\u003e\u003cimg src=\"https://readme-typing-svg.herokuapp.com?font=Fira+Code\u0026weight=600\u0026size=50\u0026pause=1000\u0026center=true\u0026vCenter=true\u0026color=green\u0026width=835\u0026height=70\u0026lines=POS+SYSTEM+BACKEND\" alt=\"pos\" /\u003e\u003c/a\u003e\n\n# POS System Backend\n![Java](https://img.shields.io/badge/Java-ED8B00?style=for-the-badge\u0026logo=java\u0026logoColor=white)\n![JavaEE](https://img.shields.io/badge/JavaEE-6DB33F?style=for-the-badge\u0026logo=java\u0026logoColor=white)\n![MySQL](https://img.shields.io/badge/MySQL-4479A1?style=for-the-badge\u0026logo=mysql\u0026logoColor=white)\n![Postman](https://img.shields.io/badge/Postman-FF6C37?style=for-the-badge\u0026logo=postman\u0026logoColor=white)\n![Apache Tomcat](https://img.shields.io/badge/Apache%20Tomcat-F8DC75?style=for-the-badge\u0026logo=apache-tomcat\u0026logoColor=black)\n\n## Project Description\nThe POS System Backend is a RESTful API that supports the frontend operations of a Point of Sale system. This backend service manages customer, order, and inventory data, providing essential functionalities such as creating, reading, updating, and deleting records.\n\n## Table of Contents\n- [Project Description](#project-description)\n- [Features](#features)\n- [Technologies](#technologies)\n- [Installation](#installation)\n- [Usage](#usage)\n- [API Documentation](#api-documentation)\n- [Contributing](#contributing)\n- [License](#license)\n- [Contact](#contact)\n\n## Features\n- Manage customer records\n- Process orders and track inventory\n- Update item quantities\n- Apply discounts and calculate totals\n- Secure endpoints with authentication\n\n## Technologies\n- **Backend Framework**: Java EE\n- **Database**: MySQL\n- **Build Tool**: Maven\n- **Application Server**: Apache Tomcat 10\n- **JDK**: OpenJDK 17\n\n## Installation\n### Prerequisites\n- Java 17 (OpenJDK 17)\n- Maven\n- MySQL\n- Apache Tomcat 10\n\n### Steps\n1. **Clone the repository - Backend**\n    ```bash\n    git clone https://github.com/ApsaraWitharana/AAD-Assignment-JavaEE-Pos-Backend.git\n  \n    ```\n   **Clone the repository -Frontend**\n    ```bash\n   git clone https://github.com/ApsaraWitharana/AAD-Assignment-JavaEE-Pos-Frontend.git\n  \n    ```\n\n\n\n2. **Configure the database**\n    - Create a MySQL database named `pos_system`\n    - Update the `persistence.xml` file with your MySQL credentials\n    ```xml\n    \u003cproperties\u003e\n        \u003cproperty name=\"javax.persistence.jdbc.url\" value=\"jdbc:mysql://localhost:3306/pos_system\"/\u003e\n        \u003cproperty name=\"javax.persistence.jdbc.user\" value=\"your_username\"/\u003e\n        \u003cproperty name=\"javax.persistence.jdbc.password\" value=\"your_password\"/\u003e\n        \u003cproperty name=\"javax.persistence.jdbc.driver\" value=\"com.mysql.cj.jdbc.Driver\"/\u003e\n        \u003cproperty name=\"hibernate.dialect\" value=\"org.hibernate.dialect.MySQL8Dialect\"/\u003e\n        \u003cproperty name=\"hibernate.hbm2ddl.auto\" value=\"update\"/\u003e\n    \u003c/properties\u003e\n    ```\n\n3. **Build the project**\n    ```bash\n    mvn clean install\n    ```\n\n4. **Deploy to Tomcat**\n    - Ensure Tomcat is installed and running.\n    - Copy the generated WAR file from the `target` directory to the Tomcat `webapps` directory.\n    - Restart Tomcat.\n\n## Usage\n### Running the Server\nAfter installation, run the server by starting Tomcat.\n\n## Project Structure\n\n### Back-end\n\nThe back-end code is organized to follow best practices and maintainability. Important directories and files include:\n\n- src/main/java: Directory containing Java classes.\n- src/main/resources/schema: Database schema.\n- src/main/resources/File: Tomcate Text File.\n- src/main/webapp/WEB-INF/: Configuration files for the JavaEE application.\n\n#### Project Packages\n\nThe back-end codebase is further organized into the following packages:\n\n(src/main/java/lk.ijse.gdse68/pos_system_back_end)\n\n- **api**: Contains classes defining the API endpoints and services.\n- **bo**: Business Objects - classes that encapsulate business logic.\n- **dao**: Data Access Objects - classes responsible for database interactions.\n- **entity**: Entity classes representing database tables.\n- **dto**: Data Transfer Objects - classes used for data exchange between layers.\n- **filter**: Contains classes implementing filters for intercepting and processing requests.\n\n## Getting Started\n\nTo set up and run the Shop Management project locally, follow these steps:\n\n\u0026nbsp;1. Clone the repository.  \n\u0026nbsp;2. Set up the back-end dependencies.  \n\u0026nbsp;3. Configure the database connection.  \n\u0026nbsp;4. Deploy the JavaEE application on the Apache Tomcat server.\n\n\n## Usage\n\nOnce the back-end application is running, users can seamlessly interact with the front-end without interruptions. The system consists of four main pages: Customer, Items, Place Order, and Order Details. Users can effortlessly navigate through these pages to perform various actions and tasks.\n\n## Dependencies\n\n#### Back-end\n\n- Java EE : Enterprise Edition of the Java platform for building robust and scalable enterprise applications. \n- Apache Tomcat : Servlet container that implements the Java Servlet and JavaServer Pages technologies. (Version 10.1.24)\n\n#### Database\n\n- MySQL Connector : Java-based driver for connecting to MySQL databases. (Versoin 8.0.33)\n- Java Naming and Directory Interface (JNDI): Java API for connecting to directory services, used for managing database connections efficiently through connection pooling, enhancing performance and scalability.\n\n#### Development Tools\n\n- Maven : Build automation and project management tool. (Version 4.0.0)\n\n### Accessing the API\nThe API will be available at `http://localhost:8080/`.\n\n## API Documentation\nFor detailed API documentation, please refer to the project’s Swagger UI available .\n\nThis documentation provides interactive access to the following APIs and Refer to the project Documentations:\n\n- **Customer API documentation URL**  [https://documenter.getpostman.com/view/35385905/2sA3rxrZm7]\n- **Item API documentation URL**  [https://documenter.getpostman.com/view/35385905/2sA3rxrZm1]\n- **Order API documentation URL**  [https://documenter.getpostman.com/view/35385905/2sA3rxrZgi]\n- **Order Details API documentation URL**  [https://documenter.getpostman.com/view/35385905/2sA3rxrZgg]\n\n\n## License\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n\u003cdiv align=\"center\"\u003e\n\n#### This project is licensed under the [MIT License](LICENSE)\n\n#### © 2024 All Right Reserved, Designed By [Sachini Apsara](https://github.com/ApsaraWitharana)\n\n\u003c/div\u003e\n\n\n\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapsarawitharana%2Faad-assignment-javaee-pos-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapsarawitharana%2Faad-assignment-javaee-pos-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapsarawitharana%2Faad-assignment-javaee-pos-backend/lists"}