A small web app where people can browse and rank real business problems (instead of jumping straight to "build a solution"). Built with Next.js, Tailwind, and Prisma + Postgres.
- Next.js 16 (App Router) — pages live in
app/ - React 19 + TypeScript
- Tailwind CSS v4 — styles via
app/globals.css, no separate config file (v4 uses@themein CSS) - Prisma 7 + Postgres — schema in
prisma/schema.prisma, client generated toapp/generated/prisma - lucide-react — icons
app/
api/ # route handlers
page.tsx # homepage
auth.ts # handles next-auth
layout.tsx # root layout (fonts, analytics)
globals.css # Tailwind theme + global styles
lib/
prisma.ts # Prisma client singleton
components/ # UI pieces (Navbar, HeroBanner, ProblemRow, CategoryCard, ...)
prisma/
schema.prisma # database models (User, Post, Problem, Category, Tag)
seed.ts # seeds prisma db
public/ # icons imgs
types/
index.ts # types and interfaces
git clone https://github.com/pushAbhi/ProblemRank
cd problemranknpm installCreate a .env file in the root
Fill in the keys (DATABASE_URL + others).
npx prisma generate
npx prisma migrate devnpm run devOpen http://localhost:3000.