In the directory of your clout-js application, do the following;
- Install this package
npm install clout-parse
- Add this module to
package.json
{
...
"modules": ["clout-parse"]
...
}
Create a new file parse.default.js
or parse.<YOUR_ENV>.js
in /conf
directory with the following JavaScript.
module.exports = {
parse: {
uri: '<mongodb://localhost/myapp>',
endpoint: '/parse',
path: '/cloud/main.js',
appId: '<app-id>',
masterKey: '<master-key>',
liveQuery: {
className: '<array>'
}
}
};