Skip to content

A template for building full-stack SaaS apps with Next.js and TypeScript.

Notifications You must be signed in to change notification settings

realplatanopapi/next-saas-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next SaaS Starter

My personal template for building full-stack SaaS apps with Next.js and TypeScript.

Stack

  • Next.js
  • Prisma
  • trpc
  • Chakra UI
  • Docker Compose, for external services like Postgres, Redis, Elasticsearch, etc
  • Fly.io for hosting

Setup

Development

In one tab, spin up Postgres:

docker compose up

In another tab, setup the app:

cd app
pnpm install
pnpm db:migrate

Then, start the development server:

pnpm dev

The app should be available at http://localhost:3000, where you should see something like this:

Screenshot 2024-07-09 at 11 54 24 PM

Setting up email authentication

This app is setup to authenticate users with a magic link that gets sent via email by way of Mailgun. You'll need to replace the values of the MAILGUN_* variables in .env to get that to work.

About

A template for building full-stack SaaS apps with Next.js and TypeScript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages