Skip to content

Instantly share code, notes, and snippets.

@stansidel
Last active March 27, 2016 08:17
Show Gist options
  • Save stansidel/9965a22e0d2dab7da539 to your computer and use it in GitHub Desktop.
Save stansidel/9965a22e0d2dab7da539 to your computer and use it in GitHub Desktop.
Parse Server with the ALLOW_CLIENT_CLASS_CREATION setting
var api = new ParseServer({
databaseURI: databaseUri || 'mongodb://localhost:27017/dev',
cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
appId: process.env.APP_ID || 'myAppId',
masterKey: process.env.MASTER_KEY || '', //Add your master key here. Keep it secret!
serverURL: process.env.SERVER_URL || 'http://localhost:1337/parse', // Don't forget to change to https if needed
liveQuery: {
classNames: ["Posts", "Comments"] // List of classes to support for query subscriptions
},
allowClientClassCreation: process.env.CLIENT_CLASS_CREATION || false // <<< This line is added for disabling client class creation
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment