This is a very simple micro service that can be built and packaged into a docker image. You should use this micro service as a template for building your own micro services. This microservice uses Node.js implementation.
-
Build the docker image
$ docker build -t template-microservice-nodejs .
-
Run the container
$ docker run -dp 8888:8888 template-microservice-nodejs
-
Test the micro service
$ curl http://localhost:8888 Success! The Framework Training template microservice is up and running using Node.js!