This is a Next.js project bootstrapped with create-next-app.
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.
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.
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.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
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.
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.
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.
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
Clone the repository:
git clone https://github.com/blackrexdl/next-restaurant.gitNavigate to the project folder:
cd next-restaurantInstall dependencies:
npm installStart the development server:
npm run devOpen your browser and visit:
http://localhost:3000
Your project will automatically reload whenever you edit files.
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 |
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
| 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 |
If you're new to Next.js, follow this simple workflow:
- Clone the project
- Install dependencies
- Run the development server
- Open the project in VS Code
- Start editing components inside
app/components
Example file to modify:
app/page.js
When you save changes, the browser updates automatically.
This project helps you practice:
- Next.js App Router
- React state management
- Context API
- Component based architecture
- UI layout design
You can deploy this project easily using Vercel.
Steps:
- Push your project to GitHub
- Go to https://vercel.com
- Import your repository
- Deploy
Vercel automatically detects the Next.js configuration.
Contributions are welcome.
If you want to improve the UI, animations, or add new features:
- Fork the repository
- Create a new branch
- Submit a pull request
If you like this project, consider giving it a star on GitHub. It helps others discover the repository and encourages further improvements.
This project is open source and available under the MIT License.