1.0.0 • Published 9 years ago

express-runner v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
9 years ago

express-runner

Build Status

Convenience lib for exposing code as express app

Example with docker

nodeapp/app.js:

module.exports = {
    hello: function (opts, callback) {
        callback(undefined, "hello: "+opts.name);
    }

docker-compose.yml:

  hello-service:
    image: express-runner
    volumes:
      - ./nodeapp:/data/app
    command: node /data/express-runner /data/app/app.js
    ports:
      - 80:80

GET /hello?name=world --> "hello: world"