Code Monkey home page Code Monkey logo

dapp-mailer's Introduction

dapp-mailer

The Giveth Dapp Mailer Notification System Sends transactional emails and handles unsubscribes for specific email types.

About

This project uses Feathers. An open source web framework for building modern real-time applications.

Getting Started

Getting up and running is as easy as 1, 2, 3.

  1. 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.

  2. Copy default.json to development.json and enter your Mailgun sandbox credentials as transportUser and transportPass in this file. Do not commit this file! It is already added to .gitignore.

  3. Create a random apiSecret and put it in default.json. This is just your test API key.

  4. Make sure you have NodeJS, Mongodb and Yarn (or NPM) installed.

  5. Install your dependencies

    cd path/to/dapp-mailer; yarn install
    
  6. 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.

Production settings

copy default.json to production.json and override all settings there. Do not deploy this file!

A note about dependencies

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

At Giveth we deploy with Now.

To deploy: cd path/to/dapp-mailer; yarn deploy

License

Copyright (c) 2018

Licensed under the MIT license.

dapp-mailer's People

Contributors

aminlatifi avatar ewingrj avatar satyavh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.