Installation
Follow these steps to set up Y3NKO locally.
Clone the Repository
git clone https://github.com/your-org/yenko-web.git
cd yenko-webInstall Dependencies
npm installThis will install all dependencies and automatically run prisma generate via the postinstall hook.
Database Setup
Using Supabase (Recommended)
- Create a new project in Supabase Dashboard
- Go to Settings > Database and find your connection strings
- Copy the connection string (with pooler for
DATABASE_URL) - Copy the direct connection string for
DIRECT_URL
Using Local PostgreSQL
If you prefer a local database:
# Using Docker
docker run --name y3nko-postgres -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres:15
# Connection string
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/y3nko"
DIRECT_URL="postgresql://postgres:postgres@localhost:5432/y3nko"Run Migrations
npx prisma migrate devThis creates all database tables based on the Prisma schema.
Seed the Database
npm run db:seedThis populates the database with:
- Default amenities
- Sample listings (development only)
- Test users
Verify Installation
npm run devOpen http://localhost:3000 in your browser. You should see the Y3NKO homepage.
Project Scripts
| Script | Description |
|---|---|
npm run dev | Start development server |
npm run build | Build for production |
npm run start | Start production server |
npm run lint | Run ESLint |
npm run db:generate | Regenerate Prisma client |
npm run db:migrate | Run database migrations |
npm run db:push | Push schema changes (no migration) |
npm run db:seed | Seed the database |
npm run db:studio | Open Prisma Studio |
npm run db:reset | Reset database (destructive) |
Prisma Studio (npm run db:studio) opens a visual database browser at http://localhost:5555.