ndx-static-routes
v0.0.13
Published
static routes for ndx-framework
Downloads
19
Readme
ndx-static-routes
provides routes to serve client content for ndx-framework apps
install withnpm 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.htmlNODE_ENV=dev (or anything else)
- build/client
- public
- build/client/index.html
- bower
