Local Setup
[!NOTE] This setup guide is based on scripts and dependencies in the current repository.
Prerequisites
| Tool | Minimum | Why |
|---|---|---|
| Node.js | 20 LTS recommended | Matches CI and Next.js runtime expectations |
| npm | Current with Node | Runs project scripts |
| Git | Any modern version | Clone and branch workflow |
| PostgreSQL client | Optional but recommended | Direct DB inspection and debugging |
| Docker | Optional | Local DB workflows if you choose Dockerized Postgres |
Clone and install
git clone https://github.com/Officialkid/event-slot.git
cd event-slot
npm installLocal development
npm run devOpen http://localhost:3000.
Connect to Neon dev branch
Use your Neon branch credentials in .env.local:
- DATABASE_URL: pooled URL
- DIRECT_URL: direct URL
This mirrors the app/runtime + migration split used by Prisma in this repo.
Prisma migrations locally
npm run db:generate
npm run db:pushIf you are applying migration files specifically:
npm run db:migrateSeed data
If seed is configured in your local environment:
npx prisma db seedIf not, create a lightweight seed script and register it under prisma.seed.