Install the Boilerplate

Step 1

Download the latest version of the boilerplate from TheSaaSFactory admin panel and install the dependencies

cd next-14-saas-boilerplate-pro
npm install

Step 2

Create a MySQL/PostGres DB in your local environment.

Step 3

Copy the .env.example file to .env and update the environment variables accordingly.

⚠️

The DATABASE_URL variable is the connection string to your MySQL/PostGres DB.

Step 4

Run the prisma commands to push the schema to the database and generate the client.

npx prisma db push

Step 5

Put some data in the database by running the seed command. (Recommended)

Run the seed

npx prisma db seed  

Step 6

Run the app in the development mode.

npm run dev --turbo

Step 7

Open the following url in production or development, you must pass as a parameter the email of the previously registered user, and the secret of next auth, this will internally add the super admin permissions to the user

http://localhost:3000/api/utils/make-admin?email=[youruseremail]&secret=[nextAuthSecret (opens in a new tab)]