In the directory of your clout-js application, do the following;
- Install this package
npm install clout-mongoose
- Add this module to
package.json
{
...
"modules": ["clout-mongoose"]
...
}
Create a new file mongoose.default.js
or mongoose.<YOUR_ENV>.js
in /conf
directory with the following JavaScript.
module.exports = {
mongoose: {
// refer to http://mongoosejs.com/docs/connections.html
uri: 'mongodb://localhost/myapp',
conf: {}
}
};