├── .eslintrc.json ├── app ├── globals.css ├── favicon.ico ├── page.tsx ├── products │ ├── layout.tsx │ ├── page.tsx │ ├── deleteProduct.tsx │ ├── addProduct.tsx │ └── updateProduct.tsx ├── layout.tsx └── api │ └── products │ ├── route.ts │ └── [id] │ └── route.ts ├── postcss.config.js ├── .vscode └── settings.json ├── prisma ├── migrations │ ├── migration_lock.toml │ └── 20230410180625_1 │ │ └── migration.sql └── schema.prisma ├── next.config.js ├── .env ├── .gitignore ├── tailwind.config.js ├── public ├── vercel.svg └── next.svg ├── tsconfig.json ├── package.json └── README.md /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /app/globals.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | 5 | -------------------------------------------------------------------------------- /app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfikricom/CRUD-Next.js-13-Prisma-PostgreSQL/HEAD/app/favicon.ico -------------------------------------------------------------------------------- /app/page.tsx: -------------------------------------------------------------------------------- 1 | const Home = () => { 2 | return
| # | 38 |Product Name | 39 |Price | 40 |Brand | 41 |Actions | 42 |
|---|---|---|---|---|
| {index + 1} | 48 |{product.title} | 49 |{product.price} | 50 |{product.brand.name} | 51 |
52 | |
55 |