https://github.com/seedstack/catalog-microservice-sample
A REST microservice exposing the API of a product catalog, based on the e-commerce domain model.
https://github.com/seedstack/catalog-microservice-sample
Last synced: 12 months ago
JSON representation
A REST microservice exposing the API of a product catalog, based on the e-commerce domain model.
- Host: GitHub
- URL: https://github.com/seedstack/catalog-microservice-sample
- Owner: seedstack
- Created: 2015-07-26T11:39:57.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-10-28T20:48:46.000Z (over 5 years ago)
- Last Synced: 2025-03-24T20:22:39.286Z (about 1 year ago)
- Language: Java
- Size: 136 KB
- Stars: 3
- Watchers: 12
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Catalog micro-service sample
[](https://travis-ci.org/seedstack/catalog-microservice-sample)
A micro-service project demonstrating REST features of SeedStack: JAX-RS integration, hypermedia and JSON-home.
# Running it
## Locally
If you have [Maven 3](http://maven.apache.org/) installed, you can clone the repository and run it locally:
mvn seedstack:run
## With docker
With Docker, first build the image:
docker build -t micro-cata-v1.0 .
Then start a container:
docker run -d -p 8080:8080 micro-cata-v1.0
## On Heroku
Or you can just deploy it on your own Heroku account by clicking this button:
[](https://heroku.com/deploy?template=https://github.com/seedstack/catalog-microservice-sample)
# Usage
Discover all application entry points as a JSON-HOME resource on the following URL:
curl http://localhost:8080/
Then follow the links to HAL resources.
# Copyright and license
This source code is copyrighted by [The SeedStack Authors](https://github.com/seedstack/seedstack/blob/master/AUTHORS) and
released under the terms of the [Mozilla Public License 2.0](https://www.mozilla.org/MPL/2.0/).