This project is built with Next.js 15, TypeScript, and Prisma (SQLite).
- Node.js 18+ (recommend 20+)
- npm (comes with Node)
Verify:
node -v
npm -vnpm installCreate a .env file in the project root with the database connection string (SQLite):
# SQLite DB lives inside the prisma/ folder
DATABASE_URL="file:./dev.db"Generate the Prisma Client:
npx prisma generateCreate the database and apply existing migrations:
npx prisma migrate dev(Optional) Open Prisma Studio to inspect data:
npx prisma studionpm run devVisit http://localhost:3000.
5) Build and run in production (optional) THIS IS FOR PRODUCTION dont need to do this when developing
npm run build
npm startnpm run dev: Start the Next.js dev servernpm run build: Build for productionnpm start: Run the production servernpx prisma generate: Generate Prisma Clientnpx prisma migrate dev: Apply pending migrations (and create new ones when developing)npx prisma studio: Visual DB browser
- Default DB is SQLite via Prisma. You can switch providers in
prisma/schema.prismaand updateDATABASE_URLaccordingly. - Main entry page is in
src/app/page.tsx.