Install and configure start-kit
Install and configure start-kit: A Next.js starter with Better Auth authentication, database integration, and reusable interface components.
Follow the source instructions for start-kit. Read the prerequisites and configuration steps before running an example.
Prerequisites
- Node.js 18+ or Bun
- MongoDB database (local or cloud)
- npm, yarn, pnpm, or bun
Installation
-
Clone the repository
git clone https://github.com/qentrah/start-kit.git cd start-kit -
Install dependencies
npm install # or bun install -
Set up environment variables
Create a
.env.localfile in the root directory:# MongoDB Connection MONGODB_URI=mongodb://localhost:27017 # or for MongoDB Atlas: # MONGODB_URI=mongodb+srv://username:password@cluster.mongodb.net # MongoDB Database Name (optional, defaults to "Cluster0") MONGODB_DB_NAME=Cluster0 # Better Auth Configuration BETTER_AUTH_SECRET=your-secret-key-here-min-32-characters BETTER_AUTH_URL=http://localhost:3000 NEXT_PUBLIC_BETTER_AUTH_URL=http://localhost:3000 -
Run the development server
npm run dev # or bun dev -
Open your browser
Navigate to http://localhost:3000
Check the installation
After setup, continue with the first example. If a command fails, compare the runtime version, working directory, and required configuration with the original README before changing dependencies.
Source and help
The catalog identifies the license as MIT. Read the repository license before redistributing source or assets.
Source captured: 2026-10-11
