Skip to content

Anujkumar108/next-pizza-shop

Repository files navigation

πŸ• Next Pizza Shop

A modern, full-featured e-commerce pizza ordering application built with Next.js 15, TypeScript, and OneEntry CMS. Experience the perfect blend of delicious pizzas and cutting-edge web technology!

Next.js React TypeScript TailwindCSS OneEntry

✨ Features

πŸ›’ Core E-commerce Features

  • Product Catalog: Browse delicious pizzas with detailed descriptions
  • Product Details: View high-quality images, prices, and ingredients
  • Shopping Cart: Add, remove, and manage items with persistent state
  • Search Functionality: Find your favorite pizzas quickly
  • Related Products: Discover similar pizzas you might love

🎨 Modern UI/UX

  • Responsive Design: Optimized for mobile, tablet, and desktop
  • Dark/Light Mode: Toggle between themes with next-themes
  • Gradient Animations: Beautiful CSS animations and transitions
  • Modern Components: Built with Radix UI primitives
  • Toast Notifications: User-friendly feedback with Sonner

πŸ”§ Technical Features

  • TypeScript: Fully typed for better development experience
  • Server Components: Optimized performance with Next.js 15
  • State Management: Zustand for cart and global state
  • Content Management: OneEntry CMS integration
  • Authentication: User login/signup with JWT tokens
  • API Routes: RESTful API endpoints for data fetching

πŸš€ Quick Start

Prerequisites

  • Node.js 18+ and npm
  • OneEntry CMS account (for content management)

Installation

  1. Clone the repository

    git clone https://github.com/Anujkumar108/next-pizza-shop.git
    cd next-pizza-shop
  2. Install dependencies

    npm install
  3. Environment Setup Create a .env.local file in the root directory:

    ONEENTRY_TOKEN=your_oneentry_token_here
    ONEENTRY_PROJECT_URL=your_oneentry_project_url_here
  4. Run the development server

    npm run dev
  5. Open your browser Navigate to http://localhost:3000 to see the magic! πŸŽ‰

πŸ“ Project Structure

next-pizza-shop/
β”œβ”€β”€ actions/               # Server actions for data fetching
β”‚   β”œβ”€β”€ auth/             # Authentication actions
β”‚   └── catalog/          # Product catalog actions
β”œβ”€β”€ app/                  # Next.js 15 app directory
β”‚   β”œβ”€β”€ (auth)/          # Authentication pages
β”‚   β”œβ”€β”€ (main)/          # Main application pages
β”‚   └── globals.css      # Global styles
β”œβ”€β”€ components/           # Reusable React components
β”‚   β”œβ”€β”€ ui/              # UI primitives (buttons, inputs, etc.)
β”‚   β”œβ”€β”€ Navbar.tsx       # Navigation component
β”‚   β”œβ”€β”€ Footer.tsx       # Footer component
β”‚   └── productCard.tsx  # Product card component
β”œβ”€β”€ lib/                 # Utility functions and configurations
β”œβ”€β”€ stores/              # Zustand state management
β”œβ”€β”€ types/               # TypeScript type definitions
└── public/              # Static assets

πŸ› οΈ Tech Stack

Frontend

State Management & UX

Backend & CMS

  • OneEntry - Headless CMS for content management
  • Next.js API Routes - Backend functionality
  • JWT Authentication - Secure user sessions

🎯 Key Pages & Features

🏠 Homepage (/)

  • Hero section with featured pizzas
  • Product catalog with filtering
  • Special offers and promotions
  • Responsive design for all devices

πŸ• Product Details (/product/[productId])

  • High-quality product images
  • Detailed descriptions and pricing
  • Add to cart functionality
  • Related products suggestions
  • Availability status indicators

πŸ›’ Shopping Cart (/cart)

  • Item management (add/remove/quantity)
  • Real-time price calculations
  • Persistent cart state
  • Checkout preparation

πŸ” Search (/search)

  • Real-time product search
  • Filter by categories
  • Search result highlighting

πŸ” Authentication (/auth)

  • User registration and login
  • JWT-based authentication
  • Secure session management

🎨 Design Philosophy

This project showcases modern web development principles:

  • Mobile-First: Responsive design starting from mobile
  • Performance: Optimized loading and rendering
  • Accessibility: Screen reader friendly and keyboard navigation
  • User Experience: Intuitive interface with smooth interactions
  • Scalability: Modular architecture for easy expansion

πŸš€ Live View

https://next-pizza-shop-sigma.vercel.app/

Vercel (Recommended)

  1. Push your code to GitHub
  2. Connect your repository to Vercel
  3. Add environment variables in Vercel dashboard
  4. Deploy automatically on every push!

Other Platforms

  • Netlify: Works seamlessly with static exports
  • Railway: Great for full-stack applications
  • DigitalOcean: App Platform deployment

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“š Learn More

Want to build amazing projects like this? Check out 100jsprojects.com for:

🎯 100+ JavaScript Projects - From beginner to advanced
πŸ’» Complete Source Code - Download and learn from real projects
πŸ“– Step-by-Step Tutorials - Detailed guides and explanations
πŸš€ Modern Tech Stack - React, Next.js, TypeScript, and more
🎨 Beautiful Designs - UI/UX best practices and modern layouts
πŸ”§ Production Ready - Deploy-ready applications with best practices

Transform your coding skills with hands-on projects that matter!

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments


Built with ❀️ by AnujKumar

🌟 Star this repo if you found it helpful! 🌟

Visit 100jsprojects.com for more amazing projects!

About

A pizza shop created by Nextjs , TailwindCSS and OneEntry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published