How sebastianzapatar/nextshadcn works
Project type and purpose
• This is a full‑stack React application built with Next.js (App Router).
• From the README and file tree, it’s a data‑driven web app (a “Chef” directory with createChef and getChefs functions, forms, and list pages), likely CRUD over some backing store or API.
File structure
• Top‑level
• app/ – Next.js App Router folder
• components/ – Shared UI primitives (button, input, card, etc.)
• lib/ – Utility functions
• public/ – Static assets
• next.config.ts, tsconfig.json, package.json, etc.
• app/ contains:
• layout.tsx, globals.css – global layout and styles
• page.tsx, not-found.tsx – home and fallback pages
• (general)/chef/page.tsx – “Chef” listing page
• app/components/chef – domain‑specific components (ChefList, ChefForm, schema, API hooks getChefs/createChef)
• No explicit “pages/api” folder is present, so data fetching is done via client‑side fetches in createChef.ts/getChefs.ts or future Route Handlers (e.g. app/api).
README for additional insights
• It’s a stock create-next-app scaffold with App Router routes, next/font for font optimization, deploys on Vercel.