{"id":24906267,"url":"https://github.com/furkan-gulsen/checkout-system","last_synced_at":"2025-10-16T18:30:49.582Z","repository":{"id":236570110,"uuid":"738636948","full_name":"Furkan-Gulsen/Checkout-System","owner":"Furkan-Gulsen","description":"The project is a mini e-commerce checkout developed with Go, incorporating features such as cart management, various product types, and promotions. It utilizes technologies like Go, Docker, Grafana, and Prometheus.","archived":false,"fork":false,"pushed_at":"2024-04-27T22:12:01.000Z","size":808,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-19T03:13:48.457Z","etag":null,"topics":["checkout-system","docker","go","go-checkout-system","go-prometheus","golang","golang-checkout-system","prometheus","shopping-checkout-application"],"latest_commit_sha":null,"homepage":"","language":"Go","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/Furkan-Gulsen.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-01-03T17:29:20.000Z","updated_at":"2024-05-02T06:05:49.000Z","dependencies_parsed_at":"2024-04-27T20:42:00.369Z","dependency_job_id":"f5e91058-5265-433e-bc29-354080ca435d","html_url":"https://github.com/Furkan-Gulsen/Checkout-System","commit_stats":null,"previous_names":["furkan-gulsen/checkout-system"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Furkan-Gulsen%2FCheckout-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Furkan-Gulsen%2FCheckout-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Furkan-Gulsen%2FCheckout-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Furkan-Gulsen%2FCheckout-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Furkan-Gulsen","download_url":"https://codeload.github.com/Furkan-Gulsen/Checkout-System/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236738656,"owners_count":19196962,"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":["checkout-system","docker","go","go-checkout-system","go-prometheus","golang","golang-checkout-system","prometheus","shopping-checkout-application"],"created_at":"2025-02-02T00:39:19.471Z","updated_at":"2025-10-16T18:30:42.107Z","avatar_url":"https://github.com/Furkan-Gulsen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shopping Checkout Application\n\n## Technologies Used\n\n- Go\n- Docker\n- Grafana\n- Prometheus\n- Swagger\n- MongoDB\n\n## Functional Requirements\n\n1. **Cart Management**: Handle up to 10 unique items (excluding VasItems) and a total of 30 products. The total cart amount should not exceed 500,000 TL.\n2. **Item Varieties**: Support for different item types like VasItem, DefaultItem, DigitalItem, with specific constraints on quantity and identification.\n3. **Digital Items**: Restriction on the quantity and specific categorization (CategoryID 7889).\n4. **Default Items**: Common e-commerce products with pricing rules in relation to VasItems.\n5. **VasItems**: Represent value-added services, constrained by category and seller ID.\n6. **Promotions**: Implementation of various discount strategies like SameSellerPromotion, CategoryPromotion, and TotalPricePromotion.\n\n## Non-Functional Requirements\n\n1. **Reliability**: Robust error handling and consistent performance.\n2. **Usability**: Simple and intuitive http-request-based interaction.\n3. **Maintainability**: Code should adhere to SOLID principles, Domain Driven Design and be easy to modify or extend.\n4. **Performance**: Optimized for fast processing of cart operations.\n\n## Prerequisites\n\n- Go environment setup for development.\n- Docker installed for containerization (optional).\n- Grafana and Prometheus for monitoring and analytics (optional).\n\n## UML Class Diagram\n\n![UML Class Diagram](./assets/uml_class_diagram.png)\n\n## Usage\n\n### Running the Application\n\n- **Direct Execution**:\n\n  - After building, you can run the application using:\n    ```\n    make run\n    ```\n  - This will start the application using the compiled binary.\n\n- **Development Mode**:\n\n  - For development purposes, you can run the application directly with Go using:\n    ```\n    make dev\n    ```\n  - This allows you to run the application without compiling it first.\n\n- **Docker**:\n  - To run the application in a Docker container, use:\n    ```\n    make up\n    ```\n  - This will build and run the application in a Docker container as defined in your `docker-compose` file.\n  - To stop and remove the container, use:\n    ```\n    make down\n    ```\n\n### Swagger Documentation\n\n- To generate Swagger documentation, run:\n  ```\n  make swag\n  ```\n- This will create Swagger documentation based on your code annotations.\n\n## Testing\n\n### Running Tests\n\n- **Persistence Tests**:\n\n  - To run persistence layer tests, execute:\n    ```\n    make persistance-tests\n    ```\n  - This will run tests located in the `./internal/infrastructure/persistence` directory.\n\n- **Application Tests**:\n  - For application layer tests, execute:\n    ```\n    make application-tests\n    ```\n  - This will run tests in the `./internal/application` directory.\n\n## Swagger Page\n\n![Swagger](./assets/swagger.png)\n\n## Grafana Page\n\n![Grafana](./assets/grafana.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffurkan-gulsen%2Fcheckout-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffurkan-gulsen%2Fcheckout-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffurkan-gulsen%2Fcheckout-system/lists"}