server service

Provides a CORS-enabled Express.js server. Includes serving of static assets as supplied via Bluepints. This service is provided via the express plugin and isn't offered by any of the other core plugins.

Boot config

{
  "staticRootDir": "/some/dir/somewhere"
}
Property Type Description Required
staticRootDir string A path pointing to a directory where static blueprint assets will be copied and served No

Blueprint dirs

This service can load resources defined in the following Blueprint directories:

Directory Content
/images A place to put images that can be served-up in Forms and similar

Service methods/properties

app

Properties

  • app Object A ready-to-go Express app

Examples

var port = 3000
server.app.listen(port, function () {
  console.log('')
  console.log('Tymly server is available http://localhost:' + port)
})

Boots after

temp