express-runner

1.0.0 • Public • Published

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"

Readme

Keywords

none

Package Sidebar

Install

npm i express-runner

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • asalonen