The Dapp Mailer Notification System Sends transactional emails and handles unsubscribes for specific email types.
This project uses Feathers. An open source web framework for building modern real-time applications.
Getting up and running is as easy as 1, 2, 3.
-
This project uses node-mailer, which supports different email api's. The default config is using Mailgun, because it is free up to 10k emails/month. You can use Sendgrid, Mailchimp and others, but that needs modification of
InitMailTime.js
Start by creating Mailgun account. -
Copy
default.json
todevelopment.json
and enter your Mailgun sandbox credentials astransportUser
andtransportPass
in this file. Do not commit this file! It is already added to .gitignore. -
Create a random apiSecret and put it in
default.json
. This is just your test API key. -
Make sure you have NodeJS, Mongodb and Yarn (or NPM) installed.
-
Install your dependencies
cd path/to/dapp-mailer; yarn install
-
Start your app
yarn start
Make sure you have Mongo running at port 27017 (or change in the default.json file)
You can now talk to the api endpoints.
copy default.json
to production.json
and override all settings there. Do not deploy this file!
As you may have noticed many dev dependencies in package.json are not located under devDependencies. The reason is that we use Now to deploy this project, which builds the project from scratch and needs those dependencies. If you don't use now, you can move these back to devDependencies.
Deploy with Now, or use any server that supports Node
To deploy:
cd path/to/dapp-mailer; yarn deploy
Copyright (c) 2018
Licensed under the MIT license.