clout-js-modules / clout-parse

Parse module for clout-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clout-parse

Install

In the directory of your clout-js application, do the following;

  1. Install this package
npm install clout-parse
  1. Add this module to package.json
{
    ...
    "modules": ["clout-parse"]
    ...
}

Configure

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>'
        }
    }
};

About

Parse module for clout-js


Languages

Language:JavaScript 100.0%