Giter Site home page Giter Site logo

skotturi / node-prelaunch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mailgun/node-prelaunch

0.0 2.0 0.0 280 KB

A Mailgun powered landing page to capture early sign ups

Home Page: https://node-prelaunch.herokuapp.com

JavaScript 44.02% CSS 41.22% HTML 14.76%

node-prelaunch's Introduction

screenshot

node-prelaunch

A prelaunch sign up app, written in node.js, powered by MongoDB & Mailgun.

Live Demo: node-prelaunch.herokuapp.com

Deploy

Responsive transactional HTML email templates from mailgun/transactional-email-templates

Icon from sketchappsources.com.

System Requirements

Getting Started

First update /server/config/secrets.js with the following credentials:

  • Mailgun for sending sign up confirmations and validating email addresses
  • google analytics id

Install dependencies:

npm install

Make sure mongodb is running (mongod) then start the node server

node server

Prelaunch Sign Up Flow

  • A user signs up on the site
  • a confirmation email is sent - image
  • the user receives the email and clicks the confirmation link
  • the user is redirected to the site with a unique token and confirmation id
  • if the token and id are valid, the user model is updated and a thank you email is sent - image

Sending Post Launch Emails

Need to send an update? An example of querying confirmed users and sending emails in batches can be found in server/email/batch-demo.js. This uses Mailgun's batch sending feature.

To send the following campaign update template, run the following command. PLEAE NOTE: there is no dry run version of this yet, this command will send out emails to any confirmed users in your user collection.

node server/email/batch-demo.js

The campaign update email uses the email alert template

image

Contributing

If you're interested in contributing, please refer to the following project goals before submitting a pr or github issue.

Project Goals

  • keep this as a starting point people can fork, redeploy, and persist their database while their app is built out
  • make it easy to send email & track changes in email templates since they are checked into codebase
  • be responsible for user data in database (not in some third party service), this also includes
    • tracking sign up dates
    • securing confirmations
    • keeping track of confirmations
  • use transactional email provider - ex: Mailgun
  • avoid creating something that can spam people and ruin email sending reputation for the owner
  • use double opt in
  • sending batch emails (max 1000 at a time) - ex: Mailgun
  • post launch sending capabilities and integration (ex: send password reset codes when app is launched)

Todo

  • add flag to batch command for sending in testmode
  • use tags to track transactional emails (signups vs commercial vs password resets)

node-prelaunch's People

Contributors

kbariotis avatar

Watchers

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