Sign inSign up

roude/simple-server

By roude

•Updated about 1 month 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:c0e28ac2b…

Size

63.2 MB

Last updated

about 1 month ago

docker pull roude/simple-server