parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

infrastructure for service providers implementation

Open lucianmat opened this issue 10 years ago • 1 comments

Would make sense to have a generic support in ParseServer for communication services, like mailgun, twillio,etc, based on generic configuration infrastructure parameters ?

like :

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 || 'myMasterKey',
  providers : {
       mailGun : {
            service: 'mailgun',
            apiKey: process.env.MAILGUN_API_KEY || 'mg-MYMAILGUNKEY',
            domain: process.env.MAILGUN_DOMAIN || '[email protected]',
            fromAddress: process.env.MAIL_FROM_ADDRESS || 'My App <[email protected]>' 
       },
      twillio : {
      }
    }
});

Instead of hardcoding providers into ParseServer (index.js) ?

lucianmat avatar Feb 03 '16 06:02 lucianmat

Looks like we're headed in that direction... will close this, please call out anything you have a problem with in a new issue. thanks. :+1:

gfosco avatar Feb 20 '16 01:02 gfosco