Sign inSign up

bondanthony/nodetester

By bondanthony

Updated over 9 years ago

Nodejs JSON Test Service

Image
0

286

bondanthony/nodetester repository overview

Test Nodejs Server


Simple nodejs service to respond with json. The data coming back from each route is being read out of a predefined property file. Main purpose of this container is to have a simple service respond with expected json for testing.

Run Container

  1. Run container docker run -d --name=nodetester -p 80:3000 bondanthony/nodetester
  2. Open your browser and go to http://localhost/api/server1 or http://localhost/api/server2
Mount Directory

To edit the standard json response files simply mount a directory to /usr/src/app/resources during your run command. You can then supply your own json responses. Example: docker run -d -v /tmp/json:/usr/src/app/resources --name=nodetester -p 80:3000 bondanthony/nodetester

Repo

Would you like to see a change, just open a pull request on Github

Tag summary

Content type

Image

Digest

Size

254.4 MB

Last updated

over 9 years ago

docker pull bondanthony/nodetester