ndx-static-routes

static routes for ndx-framework


License
MIT
Install
npm install ndx-static-routes@0.0.13

Documentation

ndx-static-routes

provides routes to serve client content for ndx-framework apps

install with
npm install --save ndx-static-routes

example

src/server/app.coffee

require ndx-server
.config
  database: 'db'
.use 'ndx-static-routes'
.start()

environment variables

ndx-static-routes serves up different content depending on the NODE_ENV variable

NODE_ENV=production

- dist/app
- public
- dist/index.html

NODE_ENV=dev (or anything else)

- build/client
- public
- build/client/index.html
- bower