Next.js starter kit
Set up the Next.js starter kit locally, configure Better Auth, and start shipping with a clean foundation and sensible defaults in minutes.
Getting started
Download the starter kit zip file, extract it, and open the project folder in your terminal. Then install the dependencies:
After the installation is complete, copy the example environment file:
Better Auth
This project uses Better Auth, so you must set a BETTER_AUTH_SECRET. Follow the guide on the Better Auth docs to generate a secret, then add it to your .env file:
Database setup
By default, this starter kit uses PostgreSQL. Set your DATABASE_URL in .env:
Replace USER, PASSWORD, HOST, PORT, and DATABASE with your PostgreSQL credentials.
The starter kit supports optional email verification. If you want users to verify their email, set NEXT_PUBLIC_EMAIL_VERIFICATION to true and configure Resend.
Create an API key on the Resend dashboard, then update your .env:
If you do not need email verification, set:
Running the application
To start the application in development mode, run:
You can then access the app at http://localhost:3000 in your browser.
Admin account
This starter kit does not include a setup command like the Laravel version. To create an admin, manually update a user record in the database and set the role to admin using your preferred database tool.
After you change the role to admin, you will see the Users menu appear in the sidebar. From there, you can register a few new users and explore how the admin features work.