Google.Chrome.mp4
This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying 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!
- Node.js: Version 20 or higher.
- Database: PostgreSQL database.
You need to set the following environment variables in your hosting provider's dashboard or a .env file:
DATABASE_URL="postgresql://user:password@host:port/database?schema=public"- Push your code to a Git repository (GitHub, GitLab, Bitbucket).
- Import the project into Vercel.
- Vercel will automatically detect Next.js.
- Set the
DATABASE_URLenvironment variable in the Vercel project settings.- You can use Vercel Postgres, Supabase, Neon, or any other Postgres provider.
- Database Migrations: To ensure your database schema is up to date during deployment, update the Build Command in Vercel settings to:
Note:
npx prisma migrate deploy && npm run buildprisma generateis automatically run during build. - Deploy!
- Setup Environment: Ensure
DATABASE_URLis set. - Install Dependencies:
npm install
- Apply Migrations:
npx prisma migrate deploy
- Build:
npm run build
- Start:
npm start