Inspired by ChickenKyiv node-stripe-membership-saas with some additions, due to inactivity on GitHub
This project is a fork/update of the Repo by ChickenKyiv/stripe-recurring-membership. I did it because it was not updated, several dependencies were really outdated and in general I wanted to maintain it adding new features.
It is a boilerplate express app for creating a membership/subscription site with Stripe, mongodb and pug. It also handles stripe webhooks.
Demo: Coming soon!
Make sure you have Node.js. If you want to deploy it to Heroku, be sure to have the Heroku CLI installed.
$ git clone https://github.com/NauCode/node-stripe-membership-saas.git # or clone your own fork
$ cd node-stripe-membership-saas
$ npm install
$ npm start
Your app should now be running on localhost:3000.
First update /server/config/secrets.js
with the following credentials:
Install dependencies with npm install
.
Start the server with node server
.
Note: Stripe webhooks can be recieved at https://your-url.com/stripe/events
.
https://stripe.com/docs/subscriptions/quickstart
https://stripe.com/docs/testing
$ heroku create
$ git push heroku master
$ heroku open
or
For more information about using Node.js on Heroku, see these Dev Center articles:
heroku create your-awesome-saas-product
heroku addons:add mlab
heroku config:set SESSION_SECRET='your_secret';
heroku config:set STRIPE_TEST_KEY='sk_test_example'
heroku config:set STRIPE_TEST_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'
heroku config:set MONGODB_URI='mongodb://heroku_pl3qcvnq'
Want add a heroku deploy button? Pull requests welcome :]
Project scheme