LogoStarterkitpro
Setup

Get Started

Your complete SaaS foundation for building modern applications

Let's build your dream SaaS in minutes 🚀

This documentation will help you quickly set up and customize your SaaS application. Follow the setup steps below to get started

Start a Local Server

  1. In your terminal, run the following commands one-by-one:
Terminal
git clone https://github.com/hasanafzal8485/starterkitpro.git [YOUR_APP_NAME]
cd [YOUR_APP_NAME]
npm install
git remote remove origin
npm run dev

Note: StarterKitPro requires Node 18.18 or greater. Type node -v in your terminal to check your version.

  1. Rename .env.example to .env.local:
Terminal
mv .env.example .env.local
  1. Open http://localhost:3000 to see your site. And voila!

Configuration File

The lib/app-config.ts file is where you configure your app. Each key is documented to know how and why it's used. Have a thorough look at it: it is the backbone of the app.

Environment Variables

Rename the .env.example file to .env.local. Change AUTH_SECRET to anything else (15 characters minimum). The file content should look like this:

.env.local
AUTH_URL="http://localhost:3000"
AUTH_SECRET="generate-a-secure-random-string"
 
DATABASE_URL=
 
NEXT_PUBLIC_GA_MEASUREMENT_ID=
 
AUTH_GOOGLE_ID=
AUTH_GOOGLE_SECRET=
 
STRIPE_PUBLIC_KEY=
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
 
AUTH_RESEND_KEY=
 
CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=

Check out the Ship Mode guide to ship your saas in minutes.

On this page