- Node.js 18 or higher
- npm, yarn, or pnpm
- Clone and install dependencies
npm install- Set up environment variables
cp .env.example .env
# Edit .env and add your AUTH_SECRET- Initialize the database
npx prisma migrate dev
# or
npx prisma db push- Start the development server
npm run dev- Open your browser Navigate to http://localhost:3000
- Click "Create Account" on the homepage
- Fill in your name, email, and password (min 6 characters)
- You'll be automatically logged in and redirected to the dashboard
- Explore the protected dashboard area
npm run build
npm startnpm run dev- Start development servernpm run build- Build for productionnpm start- Start production servernpm run lint- Run ESLintnpx prisma studio- Open Prisma Studio (database GUI)npx prisma migrate dev- Create a new migration
Database errors?
- Make sure you've run
npx prisma db pushornpx prisma migrate dev - Check that
DATABASE_URLin.envis correct
Authentication not working?
- Ensure
AUTH_SECRETis set in.env - Try clearing your browser cookies
Build errors?
- Delete
.nextfolder andnode_modules - Run
npm installandnpm run buildagain