A simple-dummy rest service using node.js and express
npm install
npm start
There are container tests using goss.
Sends a 'pong' response.
curl http://localhost:3000/ping
Counts up the number of visitor seen since server start and responses with the number.
curl http://localhost:3000
Logs startup, shutdown and receiving of request to stdout / stderr.
Build the image from the project root with the following command:
docker build -t simple-server .
Start the docker image with the following command:
docker run --init -d -p 3000:3000 --name simple-server simple-server
A prebuilt docker image can be retrieved from docker hub:
docker pull roude/simple-server:latest