Skip to content

This project is a boilerplate express app for creating a membership/subscription Marketplace with Stripe Connected accounts.

License

Notifications You must be signed in to change notification settings

19coders/node-stripe-marketplace-saas

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node Stripe Membership SaaS with Connected Marketplace

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

It is a frontend for a Stripe Connected Marketplace, and allows you to:

  • create new merchant accounts
  • allows merchants to create their own subscription plans
  • create new customer accounts
  • allows customers to subscribe to merchant plans
  • allows customers to update subscriptions

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-stripe-marketplace
heroku addons:create mongolab
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 MAILGUN_API_KEY='your-key'
heroku config:set MAILGUN_DOMAIN='your_sandbox_domain'
heroku config:set GOOGLE_ANALYTICS='UA-XXXXXX-1'

Then, push your code to heroku:

git push heroku master

About

This project is a boilerplate express app for creating a membership/subscription Marketplace with Stripe Connected accounts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 65.1%
  • HTML 32.1%
  • CSS 2.8%