backend-example-module
v1.0.5
Published
An example module for the Cleverstack backend. Use this as a reference for making your own module.
Downloads
38
Maintainers
Readme
CleverStack Example Backend Module
Documentation
See cleverstack.io for more detailed information on the Node seed or visit the Getting Started Guide
Configuration
Simply add the following config to your /config/local.json (or into your global.json for all environments, or in whatever environment you are using).
Configuration files
{
"backend-example-module": {
"driver": "ORM"
},
"clever-background-tasks": {
"enabled" : true,
"interval": 2500,
"tasks":[
{ "name": "ExampleTask", "parallel": true, "numWorkers": 2 }
],
"driver": "redis",
"redis": {
"host": "localhost",
"port": "11211"
}
}
}
Setup
Using CLI
- Run
clever install backend-example-module
and follow the prompts - Run
clever serve
to start your application.
Without CLI
- Clone this repo (or untar it there) into your modules folder (ie modules/backend-example-module)
- Add 'backend-example-module' to the bundledDependencies array of your app's package.json.
- Run
grunt server
to start your application.
License
See our LICENSE