1.0.5 • Published 11 years ago

backend-example-module v1.0.5

Weekly downloads
11
License
BSD-2-Clause
Repository
github
Last release
11 years ago

CleverStack Example Backend Module

NPM version GitHub version Dependency Status devDependency Status Code Climate Build Status Coverage NPM downloads Built with Grunt

CleverStack NodeJS Example 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

  1. Run clever install backend-example-module and follow the prompts
  2. Run clever serve to start your application.

Without CLI

  1. Clone this repo (or untar it there) into your modules folder (ie modules/backend-example-module)
  2. Add 'backend-example-module' to the bundledDependencies array of your app's package.json.
  3. Run grunt server to start your application.

License

See our LICENSE