├── .eslintrc.json ├── .gitignore ├── .husky └── pre-commit ├── .lintstagedrc.json ├── .prettierrc ├── README.md ├── app ├── _actions │ ├── order.ts │ └── restaurant.ts ├── _components │ ├── cart-item.tsx │ ├── cart.tsx │ ├── category-item.tsx │ ├── category-list.tsx │ ├── discount-badge.tsx │ ├── header.tsx │ ├── product-details.tsx │ ├── product-item.tsx │ ├── product-list.tsx │ ├── promo-banner.tsx │ ├── restaurant-details.tsx │ ├── restaurant-item.tsx │ ├── restaurant-list.tsx │ ├── search.tsx │ └── ui │ │ ├── alert-dialog.tsx │ │ ├── avatar.tsx │ │ ├── button.tsx │ │ ├── card.tsx │ │ ├── input.tsx │ │ ├── separator.tsx │ │ ├── sheet.tsx │ │ └── sonner.tsx ├── _context │ └── cart.tsx ├── _helpers │ ├── price.ts │ ├── prisma.ts │ └── restaurants.ts ├── _hooks │ └── use-favorite-restaurant.tsx ├── _lib │ ├── auth.ts │ ├── prisma.ts │ └── utils.ts ├── _providers │ └── auth.tsx ├── api │ └── auth │ │ └── [...nextauth] │ │ └── route.ts ├── categories │ └── [id] │ │ └── products │ │ └── page.tsx ├── favicon.ico ├── favorites-restaurants │ └── page.tsx ├── globals.css ├── layout.tsx ├── my-orders │ ├── _components │ │ └── order-item.tsx │ └── page.tsx ├── next-auth.d.ts ├── page.tsx ├── products │ ├── [id] │ │ ├── _components │ │ │ ├── cart-banner.tsx │ │ │ └── product-image.tsx │ │ └── page.tsx │ └── recommended │ │ └── page.tsx └── restaurants │ ├── [id] │ ├── _components │ │ └── restaurant-image.tsx │ └── page.tsx │ ├── _actions │ └── search.ts │ ├── _components │ └── restaurants.tsx │ ├── page.tsx │ └── recommended │ └── page.tsx ├── components.json ├── docker-compose.yml ├── next.config.mjs ├── package.json ├── postcss.config.mjs ├── prisma ├── migrations │ ├── 20240429195928_init_database │ │ └── migration.sql │ ├── 20240505233803_add_auth_tables │ │ └── migration.sql │ ├── 20240506022729_add_orde_table │ │ └── migration.sql │ ├── 20240506022904_add_canceled_status │ │ └── migration.sql │ ├── 20240506024728_add_canceled_status │ │ └── migration.sql │ ├── 20240506183114_add_order_products_table │ │ └── migration.sql │ ├── 20240507020435_add_user_favorite_restaurants_table │ │ └── migration.sql │ ├── 20240507033410_add_compound_id_to_user_favorite_restaurant_table │ │ └── migration.sql │ ├── 20240509162404_add_rating_to_restaurant_table │ │ └── migration.sql │ └── migration_lock.toml ├── schema.prisma └── seed.ts ├── public ├── Banner_Pizza.png ├── cupnoodles.png ├── fsw-foods.svg ├── next.svg ├── promo_banner.svg ├── promo_banner_2.svg └── vercel.svg ├── tailwind.config.ts └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | npx lint-staged -------------------------------------------------------------------------------- /.lintstagedrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/.lintstagedrc.json -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/.prettierrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/README.md -------------------------------------------------------------------------------- /app/_actions/order.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_actions/order.ts -------------------------------------------------------------------------------- /app/_actions/restaurant.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_actions/restaurant.ts -------------------------------------------------------------------------------- /app/_components/cart-item.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/cart-item.tsx -------------------------------------------------------------------------------- /app/_components/cart.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/cart.tsx -------------------------------------------------------------------------------- /app/_components/category-item.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/category-item.tsx -------------------------------------------------------------------------------- /app/_components/category-list.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/category-list.tsx -------------------------------------------------------------------------------- /app/_components/discount-badge.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/discount-badge.tsx -------------------------------------------------------------------------------- /app/_components/header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/header.tsx -------------------------------------------------------------------------------- /app/_components/product-details.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/product-details.tsx -------------------------------------------------------------------------------- /app/_components/product-item.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/product-item.tsx -------------------------------------------------------------------------------- /app/_components/product-list.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/product-list.tsx -------------------------------------------------------------------------------- /app/_components/promo-banner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/promo-banner.tsx -------------------------------------------------------------------------------- /app/_components/restaurant-details.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/restaurant-details.tsx -------------------------------------------------------------------------------- /app/_components/restaurant-item.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/restaurant-item.tsx -------------------------------------------------------------------------------- /app/_components/restaurant-list.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/restaurant-list.tsx -------------------------------------------------------------------------------- /app/_components/search.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/search.tsx -------------------------------------------------------------------------------- /app/_components/ui/alert-dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/ui/alert-dialog.tsx -------------------------------------------------------------------------------- /app/_components/ui/avatar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/ui/avatar.tsx -------------------------------------------------------------------------------- /app/_components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/ui/button.tsx -------------------------------------------------------------------------------- /app/_components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/ui/card.tsx -------------------------------------------------------------------------------- /app/_components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/ui/input.tsx -------------------------------------------------------------------------------- /app/_components/ui/separator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/ui/separator.tsx -------------------------------------------------------------------------------- /app/_components/ui/sheet.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/ui/sheet.tsx -------------------------------------------------------------------------------- /app/_components/ui/sonner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_components/ui/sonner.tsx -------------------------------------------------------------------------------- /app/_context/cart.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_context/cart.tsx -------------------------------------------------------------------------------- /app/_helpers/price.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_helpers/price.ts -------------------------------------------------------------------------------- /app/_helpers/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_helpers/prisma.ts -------------------------------------------------------------------------------- /app/_helpers/restaurants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_helpers/restaurants.ts -------------------------------------------------------------------------------- /app/_hooks/use-favorite-restaurant.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_hooks/use-favorite-restaurant.tsx -------------------------------------------------------------------------------- /app/_lib/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_lib/auth.ts -------------------------------------------------------------------------------- /app/_lib/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_lib/prisma.ts -------------------------------------------------------------------------------- /app/_lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_lib/utils.ts -------------------------------------------------------------------------------- /app/_providers/auth.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/_providers/auth.tsx -------------------------------------------------------------------------------- /app/api/auth/[...nextauth]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/api/auth/[...nextauth]/route.ts -------------------------------------------------------------------------------- /app/categories/[id]/products/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/categories/[id]/products/page.tsx -------------------------------------------------------------------------------- /app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/favicon.ico -------------------------------------------------------------------------------- /app/favorites-restaurants/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/favorites-restaurants/page.tsx -------------------------------------------------------------------------------- /app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/globals.css -------------------------------------------------------------------------------- /app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/layout.tsx -------------------------------------------------------------------------------- /app/my-orders/_components/order-item.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/my-orders/_components/order-item.tsx -------------------------------------------------------------------------------- /app/my-orders/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/my-orders/page.tsx -------------------------------------------------------------------------------- /app/next-auth.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/next-auth.d.ts -------------------------------------------------------------------------------- /app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/page.tsx -------------------------------------------------------------------------------- /app/products/[id]/_components/cart-banner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/products/[id]/_components/cart-banner.tsx -------------------------------------------------------------------------------- /app/products/[id]/_components/product-image.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/products/[id]/_components/product-image.tsx -------------------------------------------------------------------------------- /app/products/[id]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/products/[id]/page.tsx -------------------------------------------------------------------------------- /app/products/recommended/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/products/recommended/page.tsx -------------------------------------------------------------------------------- /app/restaurants/[id]/_components/restaurant-image.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/restaurants/[id]/_components/restaurant-image.tsx -------------------------------------------------------------------------------- /app/restaurants/[id]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/restaurants/[id]/page.tsx -------------------------------------------------------------------------------- /app/restaurants/_actions/search.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/restaurants/_actions/search.ts -------------------------------------------------------------------------------- /app/restaurants/_components/restaurants.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/restaurants/_components/restaurants.tsx -------------------------------------------------------------------------------- /app/restaurants/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/restaurants/page.tsx -------------------------------------------------------------------------------- /app/restaurants/recommended/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/app/restaurants/recommended/page.tsx -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/components.json -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/next.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/postcss.config.mjs -------------------------------------------------------------------------------- /prisma/migrations/20240429195928_init_database/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/prisma/migrations/20240429195928_init_database/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20240505233803_add_auth_tables/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/prisma/migrations/20240505233803_add_auth_tables/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20240506022729_add_orde_table/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/prisma/migrations/20240506022729_add_orde_table/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20240506022904_add_canceled_status/migration.sql: -------------------------------------------------------------------------------- 1 | -- AlterEnum 2 | ALTER TYPE "OrderStatus" ADD VALUE 'CANCELED'; 3 | -------------------------------------------------------------------------------- /prisma/migrations/20240506024728_add_canceled_status/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/prisma/migrations/20240506024728_add_canceled_status/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20240506183114_add_order_products_table/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/prisma/migrations/20240506183114_add_order_products_table/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20240507020435_add_user_favorite_restaurants_table/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/prisma/migrations/20240507020435_add_user_favorite_restaurants_table/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20240507033410_add_compound_id_to_user_favorite_restaurant_table/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/prisma/migrations/20240507033410_add_compound_id_to_user_favorite_restaurant_table/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20240509162404_add_rating_to_restaurant_table/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/prisma/migrations/20240509162404_add_rating_to_restaurant_table/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /prisma/seed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/prisma/seed.ts -------------------------------------------------------------------------------- /public/Banner_Pizza.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/public/Banner_Pizza.png -------------------------------------------------------------------------------- /public/cupnoodles.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/public/cupnoodles.png -------------------------------------------------------------------------------- /public/fsw-foods.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/public/fsw-foods.svg -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/promo_banner.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/public/promo_banner.svg -------------------------------------------------------------------------------- /public/promo_banner_2.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/public/promo_banner_2.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jrneliodias/fsw-foods/HEAD/tsconfig.json --------------------------------------------------------------------------------