WhatToEat is a web app which allows users to organise their favourite food places by various useful categories, so that in future, they can filter these places more efficiently based on those categories to aid in deciding where and what to eat.
This fullstack project uses Next.js with Radix UI, Prisma ORM, Zod, and PostgreSQL database.
src/
├── app/
│ └── api/
│ └── <apiResource>
│ └── <get/post/patch/delete>.ts # API controllers
│ └── post.schema.ts # Schema for create / update
│ └── route.ts # Import controllers here
│ └── <viewRoute>
│ └── _components # Subcomponents specific to this view
│ └── loading.tsx
│ └── page.tsx
├── components/ # Reusable global UI components
├── lib/
│ ├── auth # NextAuth config
│ ├── middlewares
│ ├── prisma
│ └── utils # Reusable global utils
- Supply
DATABASE_URLin .env using any empty postgres db (eg locally), then seed some dummy data with
npx prisma migrate reset
npx prisma db seed- Run locally with
npm run dev, ornpm run buildthennpm start