Introduction
Welcome to Cascade - open-source SaaS boilerplate.
Concept
The idea of Cascade template is that it offers as little bloat as possible when it comes to technology choices. The only friction before fully working boilerplate on your localhost:3000
is .env
file with correct envorinmental variables and a database running.
Prerequisite You should have installed Node.js (version 18.10.0 or higher).
Cascade barebone setup is a Next.js app with Prisma ORM and PostgreSQL database.
It takes around 10-20 minutes to set up the project locally and start developing your SaaS application.
To have all services up and running, you would require couple of hours and it will mostly be setting up the hosted versions. Good news is that you can start with the barebone setup and add services as you go.
Tools
Most of the tools selected for Cascade are open-source(OSS). Some of them are self-hosted(SH). All tools that are SaaS have generous free plans and should get you started without any additional costs.
Core:
- T3 stack(OSS) - Next.js, tRPC, Prisma
- Postgres(OSS) - modern & reliable database
- Auth.js(OSS) - plug & play authentication with sessions managed in Prisma
Business:
- Lemon Squeezy - modern and simple merchant of record
- PostHog(SH) - advanced user analytics & funnels
- Plausible(SH) - simple but powerful page analytics
Support:
- Sentry(SH) - error & bug tracking for faster fixes
- Trigger.dev(SH) - background job processing(send slack notifications on new user sign-up)
- Storybook(OSS) - manage your components & develop them in isolation
- Lost Pixel(OSS) - simple frontend tests
- Crisp - dead simple but powerful support chat
Setting up
Barebone setup guides you trough the process of setting up Cascade locally. Each individual feature has its own guide that will help you set up the service.
What is packed into Cascade
Peek into individual features that Cascade offers to get you started with your business.
Essentials
Authentication
Authentication with NextAuth & Prisma
Database
Database with Prisma & PostgreSQL
Payments
Payments with Lemon Squeezy
Background jobs
Background jobs with Trigger.dev
Error tracking & monitoring
Sentry integration with tRPC, Next.js & Prisma
User analytics
Plausible & Posthog integrations
Emails
Keeping users in the loop with Loops