roude/simple-server

By roude

Updated 9 days ago

simple-server

Image
Networking
0

10K+

roude/simple-server repository overview

simple-dummy

A simple-dummy rest service using node.js and express

Publish Docker image CodeQL Super-Linter

Installation

npm install

Starting

npm start

Tests

container test

There are container tests using goss.

Resources

ping

Sends a 'pong' response.

curl http://localhost:3000/ping
visit-counter aka root

Counts up the number of visitor seen since server start and responses with the number.

curl http://localhost:3000

Logging

Logs startup, shutdown and receiving of request to stdout / stderr.

Docker

Building

Build the image from the project root with the following command:

docker build -t simple-server .
Starting the container

Start the docker image with the following command:

docker run --init -d -p 3000:3000 --name simple-server simple-server
Prebuilt

A prebuilt docker image can be retrieved from docker hub:

docker pull roude/simple-server:latest

Tag summary

Content type

Image

Digest

sha256:ac396d73b

Size

160.5 MB

Last updated

9 days ago

docker pull roude/simple-server