{"id":24937223,"url":"https://github.com/sameerasw/my-cart-server","last_synced_at":"2025-10-11T19:37:29.331Z","repository":{"id":273900409,"uuid":"921239578","full_name":"sameerasw/my-cart-server","owner":"sameerasw","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-04T17:16:44.000Z","size":379,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T16:44:21.508Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/sameerasw.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":"2025-01-23T15:46:50.000Z","updated_at":"2025-02-04T17:16:48.000Z","dependencies_parsed_at":"2025-01-23T17:20:45.893Z","dependency_job_id":"efc1e347-a7df-460b-94bb-5a065303e6f7","html_url":"https://github.com/sameerasw/my-cart-server","commit_stats":null,"previous_names":["sameerasw/my-cart-server"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/sameerasw/my-cart-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameerasw%2Fmy-cart-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameerasw%2Fmy-cart-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameerasw%2Fmy-cart-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameerasw%2Fmy-cart-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sameerasw","download_url":"https://codeload.github.com/sameerasw/my-cart-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameerasw%2Fmy-cart-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008423,"owners_count":26084460,"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-11T02:00:06.511Z","response_time":55,"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":[],"created_at":"2025-02-02T16:58:43.760Z","updated_at":"2025-10-11T19:37:29.301Z","avatar_url":"https://github.com/sameerasw.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# my-cart-server\n\nThis is an experimental ported version of the Ticketin Backend.\n\n\u003cimg width=\"1005\" alt=\"CleanShot 2024-12-11 at 11  08 30@2x\" src=\"https://github.com/user-attachments/assets/17a59d94-6aa0-418f-a144-12446b30e75b\"\u003e\n\n## Technologies Used\n\n- **Java**: Programming language used for development.\n- **Spring Boot**: Framework for building the backend application.\n- **Spring Data JPA**: For database interactions.\n- **PostgreSQL**: Database used for storing data. (Using NeonPostgre)\n- **WebSocket**: For real-time communication.\n- **Maven**: Build and dependency management tool.\n\n## Setup Guide\n\n### Prerequisites\n\n- Java 17 or higher\n- Maven 3.9.9 or higher\n- PostgreSQL database\n\n### Steps\n\n1. **Clone the repository**:\n    ```sh\n    git clone https://github.com/sameerasw/item-in-server.git\n    cd item-in-server\n    ```\n\n2. **Set up the database**:\n    - Recommended to use NeonPostgre SQL database for a similar integration.\n    - Create a PostgreSQL database named `ticketin`.\n    - Update the database connection details in the `.env` file.\n\n3. **Configure environment variables**:\n    - Create a `.env` file in the root directory with the following content:\n        ```dotenv\n        SPRING_DATASOURCE_URL=jdbc:postgresql://[database-name].aws.neon.tech/ticketin?sslmode=require\n        SPRING_DATASOURCE_USERNAME=\u003cyour-database-username\u003e\n        SPRING_DATASOURCE_PASSWORD=\u003cyour-database-password\u003e\n        SERVER_PORT=1245\n        SERVER_ADDRESS=0.0.0.0\n        DATABSE_ACTION=update\n        ```\n\n4. **Build and run the application**:\n    ```sh\n    mvn clean install\n    mvn spring-boot:run\n    ```\n\n## Environment Setup\n\n### Environment Variables\n\n- **SPRING_DATASOURCE_URL**: JDBC URL for the PostgreSQL database.\n- **SPRING_DATASOURCE_USERNAME**: Username for the PostgreSQL database.\n- **SPRING_DATASOURCE_PASSWORD**: Password for the PostgreSQL database.\n- **SERVER_PORT**: Port on which the server will run.\n- **SERVER_ADDRESS**: Address on which the server will run.\n- **DATABSE_ACTION**: Action to be performed on the database (e.g., `update`).\n\n### Example `.env` File\n\n```dotenv\nSPRING_DATASOURCE_URL=jdbc:postgresql://aa-bbbbb-ccc-sdafsdafs.ap-southeast-1.aws.neon.tech/ticketin?sslmode=require\nSPRING_DATASOURCE_USERNAME=ticketin_owner\nSPRING_DATASOURCE_PASSWORD=samplepass\nSERVER_PORT=1245\nSERVER_ADDRESS=0.0.0.0\nDATABSE_ACTION=update\n```\n\n## Additional Details\n\n- **Logging**: The application logs are configured to be stored in the `./logs` directory. The logging configuration can be found in the `application.properties` file.\n- **Concurrency Handling**: The application uses `ReentrantLock` to handle concurrent item purchases and releases.\n- **Simulations**: The application includes simulation classes (`VendorSimulation` and `CustomerSimulation`) to simulate vendor and customer activities.\n\nFor further details, please refer to the source code and the provided documentation.\n\n---\nThis project was developed by [@sameerasw](https://github.com/sameerasw) as part of my coursework at University of\nWestminster, OOP module. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameerasw%2Fmy-cart-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsameerasw%2Fmy-cart-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameerasw%2Fmy-cart-server/lists"}