uixmat/firestarta(opens in a new tab)
Language: TypeScript
Next.js SaaS boilerplate with NextAuth, Prisma, Supabase, Shadcn/ui & Lemon Squeezy Subscriptions
- stars
- 244
- watchers
- 3
- forks
- 38
- open issues
- 3
- Last updated
- 03/04/2024
Language: TypeScript
Next.js SaaS boilerplate with NextAuth, Prisma, Supabase, Shadcn/ui & Lemon Squeezy Subscriptions
This repository serves as a starting point (or boilerplate) for any Next.js SaaS project that requires user authentication and management and subscription payments. It currently uses Prisma with a Postgres database and is being built out using shadcn/ui components besides custom sass components when needed.
Note
Now using yarn 4.1.0 through Corepack.
Changes or additions to teh stack will be updated here
Features are developed in no specific order
loading.tsxCreate a .env.local file and generate NextAuth secret using:
openssl rand -base64 32
NEXT_PUBLIC_SITE_URL=http://localhost:3000
NEXTAUTH_SECRET=
NEXTAUTH_URL=http://localhost:3000
GITHUB_SECRET=
GITHUB_ID=
DATABASE_URL=
LEMONSQUEEZY_STORE_ID=
LEMONSQUEEZY_API_KEY=
LEMONSQUEEZY_WEBHOOK_SECRET=
Tip
To setup Github visit https://github.com/settings/apps to create a new app. the callback URL should be: [origin]/api/auth/callback/[provider] as stated in the NextAuth documentation.
npx prisma migrate dev --name init yarn dev
Open http://localhost:3000 with your browser to see the result.