Skip to content

A Modern SaaS Boilerplate Built With Next.js And Stripe, Featuring Role-Based Access Control (RBAC), User Authentication, And A Clean Dashboard Layout. Perfect For Launching MVPs Fast.

License

Notifications You must be signed in to change notification settings

DecryptMike/DecryptMike-SaaS-Starter-Kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

68 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Next.js TypeScript TailwindCSS Prisma Stripe PostgreSQL Auth Cyberpunk Deployed

DecryptMike Logo

🧠 DecryptMike SaaS Starter Kit

A production-ready SaaS Starter Kit with authentication, RBAC, Stripe billing, PostgreSQL, and a fully custom cyberpunk dashboard UI.

πŸ“Έ Screenshots / GIF Preview

⛔️ Restricted Page

Sign In Page

πŸ” Sign In Page

Sign In Page

βœ… Dashboard (GIF Scroll Preview)

Log Analyzer in Action

πŸ”’ Unauthorized Page

Unauthorized Page

πŸ“‰ Stripe Success / Cancel Pages

Stripe Success Page

Stripe Canceled Page


πŸ“¦ Features

  • πŸ”’ NextAuth.js Authentication (GitHub OAuth)
  • πŸ“œ RBAC – Role-Based Access Control
  • πŸ’³ Stripe Billing – Checkout + Customer Portal
  • 🧬 PostgreSQL + Prisma ORM
  • 🌐 Vercel Ready – One-click deploy
  • πŸ’‘ Cyberpunk UI with Matrix-style rain background
  • πŸ“Š Interactive Dashboard (Total Revenue, Sales, User Growth, Activity)

πŸ› οΈ Tech Stack

  • Framework: Next.js 15 App Router (TypeScript)
  • Styling: Tailwind CSS, custom UI
  • Auth: NextAuth.js (JWT Strategy)
  • DB: Supabase PostgreSQL + Prisma ORM
  • Payments: Stripe Checkout & Portal
  • Deployment: Vercel

🧰 Project Structure

src/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ dashboard/               # Dashboard page + subpages
β”‚   β”œβ”€β”€ signin/page.tsx         # Sign In Page
β”‚   β”œβ”€β”€ unauthorized/page.tsx   # Access Denied Page
β”‚   β”œβ”€β”€ api/
β”‚   β”‚   β”œβ”€β”€ auth/[...nextauth]/route.ts  # Auth Route
β”‚   β”‚   └── stripe/checkout/    # Stripe API Routes
β”œβ”€β”€ components/ui/              # Custom UI components
β”œβ”€β”€ lib/                        # Helpers (Prisma, Auth, etc)
β”œβ”€β”€ styles/                     # Global styles
public/
β”‚   └── decryptmike-logo.png    # Brand Logo

πŸ“„ Environment Variables

Required in .env.local:

GITHUB_ID=your_github_oauth_id
GITHUB_SECRET=your_github_oauth_secret
NEXTAUTH_SECRET=your_nextauth_secret
NEXTAUTH_URL=https://your-vercel-domain.vercel.app
NEXT_PUBLIC_APP_URL=https://your-vercel-domain.vercel.app
STRIPE_SECRET_KEY=your_stripe_secret
STRIPE_PUBLIC_KEY=your_stripe_public
STRIPE_WEBHOOK_SECRET=your_stripe_webhook_secret
DATABASE_URL=your_postgres_database_url

πŸ”„ Setup Instructions

git clone https://github.com/DecryptMike/DecryptMike-SaaS-Starter-Kit.git
cd DecryptMike-SaaS-Starter-Kit
npm install
npx prisma generate
npx prisma db push
npm run dev

πŸ“Έ Screenshot References

All screenshots + GIFs can be found inside your public/ folder or attached assets:

  • /public/signin.png
  • /public/dashboard-scroll.gif
  • /public/unauthorized.png
  • /public/success.png
  • /public/cancelled.png

πŸ§ͺ Getting Started Locally

First, clone the project and install dependencies:

git clone https://github.com/DecryptMike/DecryptMike-SaaS-Starter-Kit.git
cd DecryptMike-SaaS-Starter-Kit
npm install

Run your database migrations and generate the Prisma client:

npx prisma generate
npx prisma db push

Then start the dev server:

npm run dev

Visit http://localhost:3000 to view the app. Sign-in requires GitHub OAuth to be configured in .env.local.

Pro Tip: The landing page redirects to /signin, and only authenticated users can view /dashboard.


πŸ“Œ Status

βœ… Final build tested locally and pushed to GitHub and Vercel
❌ Currently debugging GitHub OAuth callback 404
🎯 Feature complete + ready for deployment


🎯 Why I Built It

This project was built to showcase real-world skills in full-stack development with a cybersecurity-focused SaaS kit. It’s designed for hiring managers, portfolio reviewers, and recruiters looking to assess:

  • Proficiency with authentication, RBAC, and secure data storage

  • Experience integrating Stripe billing into a Next.js application

  • Design and layout customization with Tailwind CSS

  • Deployment and CI/CD using Vercel

⚠️ Legal Disclaimer

This tool is intended for educational and authorized personal use only.


πŸ’» Built by @DecryptMike


About

A Modern SaaS Boilerplate Built With Next.js And Stripe, Featuring Role-Based Access Control (RBAC), User Authentication, And A Clean Dashboard Layout. Perfect For Launching MVPs Fast.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published