• Stars
    star
    684
  • Rank 64,468 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 9 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This project is a boilerplate express app for creating a membership/subscription site with Stripe.

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 :]

More Repositories

1

angular-select-text

Angular.js directive for selecting text content on click.
JavaScript
27
star
2

stripe-webhook-middleware

Middleware for processing stripe webhooks.
JavaScript
26
star
3

passport-keystone

OpenStack Keystone authentication strategy for Passport and Node.js
JavaScript
22
star
4

sample-create-react-app

a sample project to deploy
JavaScript
7
star
5

middleware-responder

A node.js middleware for setting render and redirect options on the req object
JavaScript
6
star
6

generator-ironsmith

A yeoman generator for scaffolding metalsmith sites with gulp
CSS
6
star
7

yargs-promise

Use the headless yargs parser with promises!
JavaScript
5
star
8

codebuilder

An AWS CodeBuild project optimized for multiple source repos & any combination of buildspec based scripts from config values
JavaScript
5
star
9

grunt-init-proto

grunt-init template for prototyping static sites with jekyll, grunt, bower and compass
CSS
5
star
10

monolith

An example of managing multiple claudia.js based services with lerna and yarn
JavaScript
4
star
11

an-email-archive

Archive email newsletters from Action Network
Nunjucks
3
star
12

generator-lo

A Yeoman generator for prototyping static sites with jekyll, grunt, bower and compass
CSS
2
star
13

proxy-keystone

A proxy for OpenStack Keystone service catalog endpoints built on top of http-proxy.
JavaScript
2
star
14

cloggy

A minimal logger object built with debug
JavaScript
2
star
15

Qunit-Logging

.js for viewing qunit results in the console
JavaScript
2
star
16

approxy

An express middleware that proxies requests for clientside apps
JavaScript
2
star
17

pets

An example cli built with yargs
JavaScript
2
star
18

jnj

CSS
1
star
19

expressy

Another express mvc boilerplate
JavaScript
1
star
20

ironsmith-demo

CSS
1
star
21

realtime-webhooks

HTML
1
star
22

le-app-frame

Attempts at perfecting the "app frame" look.
JavaScript
1
star
23

ci

my CircleCI setup
Dockerfile
1
star
24

zoomies

TypeScript
1
star
25

ghost-bot

A chatbot/cli built with yargs & claudia.js
JavaScript
1
star
26

debug-stripe

Just a copy of stripe-debug.js
JavaScript
1
star
27

Backbone.js-Basics

https://peepcode.com/products/backbone-js
JavaScript
1
star
28

hubot-board

A lightweight kanban-ish chat bot for working with github issues
JavaScript
1
star