/music-gateway

A microservice API gateway using Spring Cloud Zuul

Primary LanguageJava

Music Gateway

Music Notes Image

Overview

This is an HTTP gateway to some cool music metadata databases. In addition to routing, it offers some content enrichment. The solution is based on Spring Cloud framework and is packaged as a docker image.

Main Features / Design Decisions

Synopsis

To build (package) the docker image

$ cd music-gateway
$ ./mvnw clean package docker:build

To run the Docker container (Ctrl+C to remove container)

$ docker run -it --rm -p 80:80 --name music-gateway music-gateway

To check container status

$ docker ps
CONTAINER ID        IMAGE                              COMMAND                  CREATED             STATUS                    PORTS                                                  NAMES
70f2e5e04193        music-gateway                      "java -jar /app/musi…"   49 seconds ago      Up 49 seconds (healthy)   0.0.0.0:80->80/tcp                                     music-gateway

Browse to the home page

Home Page Image