This project is a boilerplate express app for creating a membership/subscription site with Stripe.
Switch branches/tags
Nothing to show
Clone or download
eddywashere Merge pull request #21 from KensoDev/feature/mailgun-auth-details
Change Authentication method for Mailgun
Latest commit 206afec Nov 1, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public init commit Oct 24, 2014
server Change Authentication method for Mailgun Oct 31, 2016
.gitignore init commit Oct 24, 2014
LICENSE init commit Oct 24, 2014
Procfile init commit Oct 24, 2014
README.md Update README.md Jan 20, 2015
package.json update stripe requirement in middleware dependency Nov 11, 2015
server.js init commit Oct 24, 2014

README.md

Node Stripe Membership SaaS

This project is a boilerplate express app for creating a membership/subscription site with Stripe, Mailgun, mongodb and swig. Inspired by sahat/hackathon-starter and RailsApps/rails-stripe-membership-saas. It also handles stripe webhooks.

Check out the demo!

System Requirements

  • mongodb
  • nodejs

Getting Started

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

  • Stripe API keys and plan info
  • Mailgun for sending forgot/reset password confirmations.
  • session secret
  • google analytics id

Install dependencies with npm install.

Start the server with node server.

Note: Stripe webhooks can be recieved at https://your-url.com/stripe/events.

Heroku Deployment

heroku create your-awesome-saas-product
heroku addons:add mongohq
heroku config:set SESSION_SECRET='your_secret';
heroku config:set STRIPE_KEY='sk_test_example'
heroku config:set STRIPE_PUB_KEY='pk_test_example'
heroku config:set MAILGUN_USER='example.org'
heroku config:set MAILGUN_PASSWORD='key-secret'
heroku config:set GOOGLE_ANALYTICS='UA-XXXXXX-1'

Want add a heroku deploy button? Pull requests welcome :]