Skip to content

daton89/stripe-membership-saas

Repository files navigation

Stripe Membership SaaS

This is a boilerplate for a membership/subscription application with Stripe, Mailgun, ExpressJS MongoDB and React. Inspired by sahat/hackathon-starter and RailsApps/rails-stripe-membership-saas. It also handles stripe webhooks.

Check out the demo!

System Requirements

  • MongoDB
  • NodeJS
  • Docker (for production and tests with Jenkins)
  • Yarn (optional)

Getting Started

First add variables in /server/config/environments 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 yarn install or npm install.

Start the server with npm start.

Note: Stripe webhooks can be recieved at https://your-domain.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'

About

Stripe membership and subscription service.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published