This is a Next.js project bootstrapped with create-next-app.
This project is now scaffolded for Prisma 7 with PostgreSQL.
- Add your connection string to
.envor.env.local:
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/neup_code?schema=public"- Generate the client if needed:
npm run db:generate- After you add models to
prisma/schema.prisma, create your first migration:
npm run db:migrate -- --name init- Open Prisma Studio when you want to inspect the database:
npm run db:studioThe app-side Prisma singleton lives in src/lib/prisma.ts, and the generated client is emitted to src/generated/prisma.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:2633 with your browser to see the result.
If styles look stale or missing, use the reset workflow:
npm run dev:resetThis command:
- Stops stale Next.js processes using the app port (
2633) if found. - Clears the
.nextcache. - Starts a fresh dev server.
If you only want to clear cache:
npm run cleanAlso avoid dynamic Tailwind class construction like text-${color}-500 in runtime
strings. Keep class names static in source files so Tailwind can detect and generate
them.
You can start editing the page by modifying src/app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.