Logo Lanfrica

silasbarack/ticketflow-kenya

Domaine:

digital infrastructure

Type de record:

software
Créateur:
sil
Hôte:
# TicketFlow Kenya Full-stack ticket sales and event management platform: organizers create events and ticket types, customers pay via M-Pesa STK Push, tickets are issued as QR codes, and organizers scan them at the gate. Admins moderate events, users, and payments. - **Backend**: NestJS + Prisma + PostgreSQL — backend/ - **Frontend**: Next.js 14 + TypeScript + Tailwind CSS — frontend/ ## Prerequisites - Node.js 18+ - PostgreSQL 14+ running locally (or a connection string to a hosted instance) ## Local PostgreSQL (already set up in this workspace) This machine has a system PostgreSQL 18 service on port 5432, but its superuser password wasn't available, so a **second, dedicated PostgreSQL instance** was initialized for this project instead of touching the system service: - Data directory: `C:\Users\user\pgdata-ticketflow` - Port: **5433** (not the default 5432, to avoid clashing with the system service) - Role: `ticketflow_user` / password `ticketflow_dev_pw` (local dev only — change before any shared/production use) - Database: `ticketflow_kenya` (already migrated and seeded) `backend/.env` is already created and points at it: ``` DATABASE_URL="postgresql://ticketflow_user:ticketflow_dev_pw@localhost:5433/ticketflow_kenya?schema=public" ``` **This Postgres instance is not a Windows service** — it only runs while its process is alive. If it's not running (e.g. after a reboot), start it with: ```powershell & "C:\Program Files\PostgreSQL\18\bin\pg_ctl.exe" -D "C:\Users\user\pgdata-ticketflow" -l "C:\Users\user\pgdata-ticketflow\server.log" -o "-p 5433" start ``` Stop it with: ```powershell & "C:\Program Files\PostgreSQL\18\bin\pg_ctl.exe" -D "C:\Users\user\pgdata-ticketflow" stop ``` If you'd rather use the existing system PostgreSQL service on port 5432 instead, reset its `postgres` user password (e.g. via pgAdmin or `ALTER USER postgres WITH PASSWORD '...'` once logged in), then update `DATABASE_URL` in `backend/.env` accordingly. ## 1. Backend setup ` …