parse-server-sparkpost-adapter

1.0.7 • Public • Published

parse-server-sparkpost-adapter

Simple sparkpost adapter for parse server. Borrowed heavily from oursky's sendgrid adapter.

Configuration

var express = require('express');
var ParseServer = require('parse-server').ParseServer;
var app = express();
var SparkPostAdapter = require('parse-server-sparkpost-adapter');

// Specify the connection string for your mongodb database
// and the location to your Parse cloud code
var api = new ParseServer({
  databaseURI: 'mongodb://localhost:27017/dev',
  cloud: '/home/myApp/cloud/main.js', // Provide an absolute path
  appId: 'myAppId',
  masterKey: 'myMasterKey', // Keep this key secret!
  fileKey: 'optionalFileKey',
  serverURL: 'http://localhost:1337/parse', // Don't forget to change to https if needed
  appName: 'myAppName',
  publicServerURL: 'http://localhost:1337/parse',
  emailAdapter: SparkPostAdapter({
    apiKey: 'sparkpostApiKey',
    fromAddress: 'fromEmailAddress',
  })
});

// Serve the Parse API on the /parse URL prefix
app.use('/parse', api);

app.listen(1337, function() {
  console.log('parse-server-example running on port 1337.');
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.7
    95
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.7
    95
  • 1.0.6
    2
  • 1.0.5
    0
  • 1.0.4
    0
  • 1.0.3
    0

Package Sidebar

Install

npm i parse-server-sparkpost-adapter

Weekly Downloads

85

Version

1.0.7

License

MIT

Unpacked Size

4.22 kB

Total Files

5

Last publish

Collaborators

  • woodardj