{"id":13300090,"url":"https://github.com/helidon-sockshop/carts","last_synced_at":"2025-03-10T11:32:47.607Z","repository":{"id":40918757,"uuid":"233580838","full_name":"helidon-sockshop/carts","owner":"helidon-sockshop","description":"Helidon Sock Shop: Shopping Cart Service","archived":false,"fork":false,"pushed_at":"2022-06-22T20:07:07.000Z","size":247,"stargazers_count":3,"open_issues_count":2,"forks_count":3,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-07-29T18:04:25.482Z","etag":null,"topics":["coherence","example","helidon","kubernetes","microservice"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"upl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/helidon-sockshop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-13T11:32:37.000Z","updated_at":"2024-07-29T18:04:25.483Z","dependencies_parsed_at":"2022-09-20T19:50:35.646Z","dependency_job_id":null,"html_url":"https://github.com/helidon-sockshop/carts","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helidon-sockshop%2Fcarts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helidon-sockshop%2Fcarts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helidon-sockshop%2Fcarts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helidon-sockshop%2Fcarts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/helidon-sockshop","download_url":"https://codeload.github.com/helidon-sockshop/carts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242843367,"owners_count":20194367,"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":["coherence","example","helidon","kubernetes","microservice"],"created_at":"2024-07-29T17:40:24.020Z","updated_at":"2025-03-10T11:32:47.590Z","avatar_url":"https://github.com/helidon-sockshop.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shopping Cart Service\n\nThe Shopping Cart Service is implemented as a multi-module project containing the following modules:\n\n1. **[carts-core](./carts-core)** contains the bulk of the service implementation, including\ndomain model, the REST service itself, as well as the data repository abstraction and its \nin-memory implementation;\n\n2. **[carts-coherence](./carts-coherence)** contains the data repository implementation for \nCoherence backend\n\n3. **[carts-mongo](./carts-mongo)** contains the data repository implementation for MongoDB \nbackend\n\n4. **[carts-mysql](./carts-mysql)** contains the data repository implementation for MySQL \nbackend (using JPA)\n\n5. **[carts-redis](./carts-redis)** contains the data repository implementation for Redis \nbackend (using Redisson client)\n\n## API\n\nThe service exposes REST API on port 7001. \n\nTBD (add OpenAPI support/link)\n\n## Building the service\n\nIn order to build all the modules and create Docker images for the service, simply run the \nfollowing commands inside the top-level `carts` directory:\n\n```bash\n$ mvn clean install\n$ mvn package -Pdocker -DskipTests\n``` \n\nThe first command will build all the modules, run unit and integration tests, and install the\nartifacts that need to be included into the Docker images into the local Maven repo.\n\nThe second command will then package those artifacts, and all of their dependencies, into\nthe local Docker image with the same names as the corresponding module (one image per module).\n\nYou can then manually push generated image to a Docker repository of your choice in order\nto make it available to other environments.\n\nAlternatively, you can build and push the image directly to a remote Docker repository by\nrunning the following command instead:\n\n```bash\n$ mvn package -Pdocker -DskipTests -Ddocker.repo=\u003cyour_docker_repo\u003e -Djib.goal=build\n```\n\nYou should replace `\u003cyour_docker_repo\u003e` in the command above with the name of the \nDocker repository that you can push images to.\n\n## Running the service\n\nPlease refer to documentation for the individual modules above to find out how to run\ndifferent implementations of this service, including the backends they require, for local\ntesting.\n\nTo learn how to run the service in Kubernetes, as part of a larger Sock Shop application,\nplease refer to the [main documentation page](../sockshop/README.md).\n\n## License\n\nThe Universal Permissive License (UPL), Version 1.0","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelidon-sockshop%2Fcarts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelidon-sockshop%2Fcarts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelidon-sockshop%2Fcarts/lists"}