Sign inSign up

cnservices/microservices-demo-nodejs

By cnservices

•Updated 1 day ago

Microservices Demo - Node.js

Image
0

8.0K

cnservices/microservices-demo-nodejs repository overview

⁠Microservices Demo

⁠App1

This is a node.js app that serves a web page showing the ID of the docker container in which it is running. To build this app, from the root of this repository just run:

docker build -t demo .

To create a container from that image, run:

docker run -p XXXX:3000 demo

You will be able to see the app going to:

localhost:XXXX
⁠Rest API

The app contains three Rest API.

Index - Return the served site.

localhost:XXXX

Exit Successfully - Accessing this Rest API will make the container to exit successfully.

localhost:XXXX/exitSuccess

Exit With Error - Accessing this Rest API will make the container to exit with error.

localhost:XXXX/exitWithError

Tag summary

Content type

Image

Digest

sha256:2cc60bf11…

Size

62.3 MB

Last updated

1 day ago

docker pull cnservices/microservices-demo-nodejs