A simple-dummy rest service using node.js and fastify
npm installBundle the service into a single minified file with esbuild:
npm run buildnpm startOr run the esbuild bundle directly:
node dist/server.jsThere are container tests using goss.
Sends a 'pong' response.
curl http://localhost:3000/pingCounts up the number of visitor seen since server start and responses with the number.
curl http://localhost:3000Logs 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-serverA prebuilt docker image can be retrieved from docker hub:
docker pull roude/simple-server:latest