Skip to content

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

License

Notifications You must be signed in to change notification settings

a-zen/simple-server

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published