Skip to content

blackrexdl/next-restaurant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

799 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

This project includes a traffic tracking feature that fetches daily traffic data from this repository and showcases it on your GitHub profile. This helps you monitor user progress and engagement over time with an auto-updating chart.

Traffic Badge

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev.    

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.js. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Daily Views

An auto-updating chart displays the daily views of this repository, providing a visual representation of traffic trends directly on your GitHub profile. This feature helps you stay informed about the popularity and user engagement of your project in real-time. wakatime

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

๐Ÿฝ๏ธ Next Restaurant

A modern restaurant UI built with Next.js, featuring a smooth food ordering interface, cart system, animated sidebar cart, and responsive layout.

This project is designed as a learning-friendly frontend project for developers who want to understand how a real food ordering UI works using the Next.js App Router.


๐Ÿš€ Project Overview

Next Restaurant demonstrates how modern food ordering interfaces work with features like:

  • Dynamic food listing
  • Addโ€‘toโ€‘cart functionality
  • Cart quantity management
  • Sliding cart sidebar
  • Persistent cart using localStorage
  • Responsive UI

The project structure is beginnerโ€‘friendly and ideal for learning Next.js fundamentals and UI architecture.


File Tree: Dine@flow

Generated: 4/17/2026, 4:25:06 PM Root Path: /Users/shubhamsharma/VS CODE/Dine@flow

โ”œโ”€โ”€ ๐Ÿ“ .github
โ”‚   โ””โ”€โ”€ ๐Ÿ“ workflows
โ”‚       โ””โ”€โ”€ โš™๏ธ gridgreen.yml
โ”œโ”€โ”€ ๐Ÿ“ public
โ”‚   โ””โ”€โ”€ ๐Ÿ“ images
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ Marghereta pizza.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ Tandoori-momos.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ aloo-tikki.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ banana-shake.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ biryani.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ butter-chicken.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ cappuccino.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ“„ chicken burger.avif
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ chocolate-shake.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ chole-bhature.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ cold-coffee.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ espresso.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ fried-momos.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ idli.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ latte.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ mango-shake.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ masala-dosa.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ mocha.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ momos.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ oreo-shake.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ paneer-butter-masala.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ paneer-tikka.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ pav-bhaji.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ samosa-chaat.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ strawberry-shake.jpg
โ”‚       โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ vada-pav.jpg
โ”‚       โ””โ”€โ”€ ๐Ÿ–ผ๏ธ vanilla-shake.jpg
โ”œโ”€โ”€ ๐Ÿ“ src
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ app
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ checkout
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ components
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ CheckoutItems.jsx
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ DeliveryForm.jsx
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ OrderNotes.jsx
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ PaymentMethod.jsx
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ PriceBreakdown.jsx
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ PromoSection.jsx
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ“„ 
ReservationForm.jsx
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ styles
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐ŸŽจ checkout-animations.css
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐ŸŽจ checkout-card.css
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐ŸŽจ checkout-form.css
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐ŸŽจ checkout-header.css
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐ŸŽจ checkout-layout.css
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐ŸŽจ checkout-payment.css
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐ŸŽจ checkout-popup.css
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐ŸŽจ checkout-promo.css
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐ŸŽจ checkout-reservation.css
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ๐ŸŽจ checkout-summary.css
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐ŸŽจ checkout.css
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ“„ page.jsx
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ components
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ CartSidebar
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ CartSidebar.jsx
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ๐ŸŽจ cartsidebar.css
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ CategoryFilter
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ CategoryFilter.jsx
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ๐ŸŽจ category.css
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ FoodCard
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ FoodCard.jsx
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ๐ŸŽจ card.css
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ Footer
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ Footer.jsx
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ๐ŸŽจ footer.css
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ Hero
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ Hero.jsx
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ๐ŸŽจ hero.css
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ Loader
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ“„ Loader.jsx
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ“ Navbar
โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ ๐Ÿ“„ Navbar.jsx
โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ ๐ŸŽจ navbar.css
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ reservation
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ page.jsx
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ๐ŸŽจ reservation.css
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ test-loader
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ“„ page.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ favicon.ico
โ”‚   โ”‚   โ”œโ”€โ”€ ๐ŸŽจ global.css
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ layout.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ loading.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ page.js
โ”‚   โ”‚   โ””โ”€โ”€ ๐ŸŽจ page.module.css
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ context
โ”‚   โ”‚   โ”œโ”€โ”€ ๐ŸŽจ CartContext.css
โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ“„ CartContext.jsx
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ lib
โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ“ db
โ”‚   โ”‚       โ””โ”€โ”€ ๐Ÿ“„ mongo.js
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ styles
โ”‚   โ”‚   โ””โ”€โ”€ ๐ŸŽจ globals.css
โ”‚   โ””โ”€โ”€ ๐Ÿ“„ next.config.js
โ”œโ”€โ”€ โš™๏ธ .gitignore
โ”œโ”€โ”€ ๐Ÿ“ README.md
โ”œโ”€โ”€ ๐Ÿ“„ eslint.config.mjs
โ”œโ”€โ”€ โš™๏ธ jsconfig.json
โ”œโ”€โ”€ ๐Ÿ“„ next
โ”œโ”€โ”€ ๐Ÿ“„ next-restaurant@0.1.0
โ”œโ”€โ”€ ๐Ÿ“„ next.config.mjs
โ”œโ”€โ”€ โš™๏ธ package-lock.json
โ”œโ”€โ”€ โš™๏ธ package.json
โ””โ”€โ”€ โš™๏ธ views-data.json

Generated by FileTree Pro Extension

๐Ÿ“ฆ Installation

Clone the repository:

git clone https://github.com/blackrexdl/next-restaurant.git

Navigate to the project folder:

cd next-restaurant

Install dependencies:

npm install

โ–ถ๏ธ Run the Project

Start the development server:

npm run dev

Open your browser and visit:

http://localhost:3000

Your project will automatically reload whenever you edit files.


๐Ÿงฐ Development Setup

Below is a simple setup guide for different operating systems.

Step Windows macOS
Install Node.js Download from nodejs.org Install via nodejs.org or brew
Install Git Download from git-scm.com brew install git
Clone Repo git clone repo-url git clone repo-url
Install Packages npm install npm install
Start Dev Server npm run dev npm run dev

๐Ÿ“ Project Structure

next-restaurant
โ””โ”€โ”€ src
    โ”œโ”€โ”€ app
    โ”‚   โ”œโ”€โ”€ cart
    โ”‚   โ”‚   โ””โ”€โ”€ page.jsx
    โ”‚   โ”œโ”€โ”€ checkout
    โ”‚   โ”‚   โ””โ”€โ”€ page.jsx
    โ”‚   โ”œโ”€โ”€ order-success
    โ”‚   โ”‚   โ””โ”€โ”€ page.jsx
    โ”‚   โ”œโ”€โ”€ components
    โ”‚   โ”‚   โ”œโ”€โ”€ Navbar
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ Navbar.jsx
    โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ navbar.css
    โ”‚   โ”‚   โ”œโ”€โ”€ Hero
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ Hero.jsx
    โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ hero.css
    โ”‚   โ”‚   โ”œโ”€โ”€ FoodCard
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ FoodCard.jsx
    โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ card.css
    โ”‚   โ”‚   โ”œโ”€โ”€ CartSidebar
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ CartSidebar.jsx
    โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ cartsidebar.css
    โ”‚   โ”‚   โ””โ”€โ”€ Footer
    โ”‚   โ”‚       โ”œโ”€โ”€ Footer.jsx
    โ”‚   โ”‚       โ””โ”€โ”€ footer.css
    โ”‚   โ”œโ”€โ”€ globals.css
    โ”‚   โ”œโ”€โ”€ layout.js
    โ”‚   โ””โ”€โ”€ page.js
    โ”‚
    โ”œโ”€โ”€ context
    โ”‚   โ””โ”€โ”€ CartContext.jsx
    โ”‚
    โ”œโ”€โ”€ lib
    โ”‚   โ””โ”€โ”€ db
    โ”‚       โ””โ”€โ”€ mongo.js
    โ”‚
    โ””โ”€โ”€ styles
        โ””โ”€โ”€ globals.css

Main areas:

  • app/ โ†’ Next.js App Router pages
  • components/ โ†’ Reusable UI components
  • context/ โ†’ Global cart state using React Context
  • lib/ โ†’ Database or utility logic
  • styles/ โ†’ Global styling

๐ŸŽฎ Core Features

Feature Description
Add to Cart Add food items to cart
Quantity Controls Increase or decrease items
Cart Sidebar Smooth slideโ€‘in cart panel
Cart Badge Shows item count in navbar
Persistent Cart Cart saved with localStorage
Responsive UI Works on mobile and desktop

๐Ÿง‘โ€๐Ÿ’ป Beginner Guide

If you're new to Next.js, follow this simple workflow:

  1. Clone the project
  2. Install dependencies
  3. Run the development server
  4. Open the project in VS Code
  5. Start editing components inside app/components

Example file to modify:

app/page.js

When you save changes, the browser updates automatically.


๐Ÿ“Š Learning Goals

This project helps you practice:

  • Next.js App Router
  • React state management
  • Context API
  • Component based architecture
  • UI layout design

๐ŸŒ Deployment

You can deploy this project easily using Vercel.

Steps:

  1. Push your project to GitHub
  2. Go to https://vercel.com
  3. Import your repository
  4. Deploy

Vercel automatically detects the Next.js configuration.


๐Ÿค Contributing

Contributions are welcome.

If you want to improve the UI, animations, or add new features:

  1. Fork the repository
  2. Create a new branch
  3. Submit a pull request

โญ Support

If you like this project, consider giving it a star on GitHub. It helps others discover the repository and encourages further improvements.


๐Ÿ“œ License

This project is open source and available under the MIT License.

About

A modern gastronomic web interface utilizing advanced frontend frameworks, responsive design principles, and optimized rendering strategies.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors