Skip to content

A great starting point to build your SaaS in node.js, with Stripe subscription billing 🚀

Notifications You must be signed in to change notification settings

Valrob28/nodeSaas

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeSaas

License

Inspired By alecrocute'sflaskSaas. I've noticed SaaS bootstraps/boilerplates being sold upwards of $1,000 per year and I think that's fucking ridiculous. This project will be my attempt to make a great starting point for your next big business as easy and efficent as possible.

Features

  • User account sign up, sign in
  • Stripe subscriptions.
  • HTML macros and layout file.
  • password reset, all through asynchronous email confirmation.
  • Form generation.
  • Error handling.
  • "Functional" file structure.
  • Administration panel.
  • Logging.
  • Simple RESTful API to communicate with your app.

Libraries

Backend

Frontend

Structure

Currently, everything is contained in the / folder.

  • There you have the classic static/ and templates/ folders. The templates/ folder contains macros, error views and a common layout.
  • I added a views/ folder to separate the user and the website logic, which could be extended to the the admin views.

Setup

Vanilla

  • Install the requirements and setup the development environment.

    clone the repository type npm i change .env.example to .env. You also need to fill all the variables you need to define database driver url (I personally use mLab)

  • Notes

    Endpoint Url refers to stripe webhook url. You need to have a public url to access it. I personally prefer ngrok but you can use stripeCLI too. Stripe plan can be found on stripe dashboard. session secret is a random string for express session. Add ngrok url to stripe checkpoint hook.

  • Run the application.

    node index.js

  • Navigate to localhost:3000.

License

The MIT License (MIT). Please see the license file for more information.

About

A great starting point to build your SaaS in node.js, with Stripe subscription billing 🚀

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 92.9%
  • JavaScript 3.9%
  • EJS 3.2%