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.
- 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.
- 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.
-
Clone the repository:
git clone https://github.com/username/pizza-delivery-app.git
-
Install the dependencies:
cd pizza-delivery-app npm install
-
Run the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:3000
to view the app.
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.
Contributions are welcome! If you encounter any bugs or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.