You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your PostgreSQL must be running. Create the database:
# macOS (Homebrew)
psql -U postgres -c "CREATE DATABASE goride;"# Windows — run in psql shell or pgAdmin
CREATE DATABASE goride;
2. Setup Backend API
# Open terminal in VS Code → cd to api foldercd api
# Install dependencies
npm install
# Push database schema (creates all tables)
npx prisma db push
# Seed sample data
node prisma/seed.js
# Start the API server
npm run dev
Start PostgreSQL: brew services start postgresql@16 (Mac) or net start postgresql-x64-16 (Windows)
P1001: Can't reach database
Check DATABASE_URL in api/.env — update username/password
EADDRINUSE 4000
Port in use. Change PORT in api/.env
EADDRINUSE 3000
Next.js port in use. Run npm run dev -- -p 3001
Login not working
Make sure seed ran: node prisma/seed.js
API 401 errors
Token expired — log out and log back in
Windows Notes
# If psql not in PATH, add to environment variables:# C:\Program Files\PostgreSQL\16\bin# Create database in psql shell:
psql -U postgres
CREATE DATABASE goride;\q# Then run api setup as above
About
Full-stack cab booking app with web, API, and mobile — built with Next.js, Express, Prisma, PostgreSQL, and Expo React Native