This module contains the bulk of the Shopping Cart service implementation, including the domain model, REST API, as well as the data repository abstraction and its in-memory implementation.
See main documentation page for instructions.
Because this implementation uses in-memory data store, it is trivial to run.
Once you've built the Docker image per instructions above, you can simply run it by executing:
$ docker run -p 7001:7001 ghcr.io/helidon-sockshop/carts-core
Once the container is up and running, you should be able to access service API by navigating to http://localhost:7001/carts/.
As a basic test, you should be able to perform an HTTP GET against /carts/{customerId}
endpoint:
$ curl http://localhost:7001/carts/123
which should return JSON response
{
"customerId": "123"
}
The Universal Permissive License (UPL), Version 1.0