A minimal Turborepo monorepo for a URL shortener service.
apps/client: Frontend (Next.js, Bulma CSS) — runs on port 3000apps/server: Backend (Express, Prisma) — runs on port 4000packages/db: Prisma setup withShortUrlmodelpackages/config: Shared tsconfig, eslint, prettier configs
- Set
DATABASE_URLin your environment to point to your local Postgres instance. - Run
npm run db:pushto apply Prisma schema to the database. - Run
npm run db:studioto open Prisma Studio. - Run
npm run devto start all apps (FE: http://localhost:3000, BE: http://localhost:4000)
- Install dependencies:
npm install - Configure your
.envfile withDATABASE_URLfor Postgres andNEXT_PUBLIC_API_URLfor FE (default: http://localhost:4000) - Push Prisma schema:
npm run db:push - Start development:
npm run dev
Minimal, local-first setup. See code for details.