Skip to content

bobbyhalljr/pizza-ordering-app

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 

This repository is part of a blog post, if you want to read the blog post you can find it here:

The power of promises with next.js: Building a pizza delivery app

Pizza Delivery App

This is a sample Pizza Delivery App built with Next.js and Tailwind CSS. It demonstrates the use of promises and asynchronous operations to handle pizza orders, cart management, and order processing.

Features

  • Select a pizza from the dropdown menu or create a custom order.
  • Add selected pizzas to the cart and view the cart contents.
  • Edit or delete existing orders in the cart.
  • Simulate API calls and handle promises to ensure smooth order processing.

Technologies Used

  • Next.js: A React framework for server-side rendering and building web applications.
  • Tailwind CSS: A utility-first CSS framework for rapid UI development.
  • React: A JavaScript library for building user interfaces.
  • useState: A React hook for managing component state.

Getting Started

  1. Clone the repository:

    git clone https://github.com/username/pizza-delivery-app.git
  2. Install the dependencies:

    cd pizza-delivery-app
    npm install
  3. Run the development server:

    npm run dev
  4. Open your browser and navigate to http://localhost:3000 to view the app.

Folder Structure

  • src/pages/: Contains the Next.js pages for the app.
  • src/components/: Contains reusable React components.
  • src/styles/: Contains CSS styles using Tailwind CSS.
  • public/: Contains static assets such as images.

Contributing

Contributions are welcome! If you encounter any bugs or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.