Skip to content

A Pizza ordering platform made using Django

Notifications You must be signed in to change notification settings

Logic06183/pizzashop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pizzashop

HitCount

Overview

This is an app for handling a pizza restaurant’s online orders. Customers will be able to browse the restaurant’s menu, add items to their cart, and submit their orders. They can also add addresses, edit existing addresses. Meanwhile, the restaurant owners will be able to add and update menu items, and view orders that have been placed.

Features

  • 🍴 Menu : The app allows the customer to be able to browse the menu, listing all the menu items, their size variations and their respective prices.

  • Adding Items : Using the admin site, restaurant owners can add, update and remove items on the menu.

  • 👤 Registration, Login, Logout : Customers can register on the application with an email address, password. They can login and logout of our website.

  • 🛒 Shopping Cart : Once logged in, customers can see all the menu items in the menu, they can add items (along with toppings or extras, if appropriate) to their virtual “shopping cart.” The contents of the shopping are saved even if a customer closes the window, or logs out and logs back in again.

  • ☑️ Placing an Order: Once there is at least one item in a customer’s shopping cart, they are able to place an order, whereby the customer is asked to confirm the items in the shopping cart, and the total before placing an order.

  • 👁️ Viewing Orders : Restaurant owners have access to a page where they can view any orders that have already been placed.

  • 🕘 Order Status : Allows restaurant owners to mark orders as complete and allowing customers to see the status of their pending or completed orders.

  • 📍 Shipping Addresses : Allows customers to add multiple shipping addresses to their profile which can be selected while placing an order, it also lets the customers edit or remove addresses.

  • 💳 Payment Integration : The app comes integrated with the Stripe API to allow customers to actually use a credit card to make a purchase during checkout.

  • 🔗 Social Logins : Allows the customer to be able to signup and login using social authentication providers such as Google & Facebook.

System Design

For additional insights into the system design of this application, please refer to the document provided here.

Running the Project Locally

  1. Run using Docker Compose: Ensure you have Docker Compose installed on your system. Navigate to the project's root directory and run the following command to build and start the application and its services:

    docker compose up -f local.yaml -d
    
  2. Access the Application: After successfully launching the containers, you can access the application in your web browser at http://localhost:8000

  3. Demo Admin Access : To access the admin panel, visit http://localhost:8000/admin and use the following credentials:

    • Username: demo
    • Password: demo@123
  4. Social Authentication: The project includes built-in support for social authentication with Google, Facebook, and Github.

    • Google OAuth: This feature is readily available and uses demo credentials configured within the app. If you wish to use your own credentials, modify the Google App entry at the following link: http://localhost:8000/admin/socialaccount/socialapp/.

    • Facebook OAuth: Out-of-the-box functionality is not provided for Facebook Authentication. However, you can refer to the django-allauth docs and follow the steps to add a social app through the following link: http://localhost:8000/admin/socialaccount/socialapp/add/

    • GitHub OAuth: Similar to Facebook Authentication, GitHub Authentication requires configuration and does not work automatically. Follow the instructions in the django-allauth docs to add an entry here: http://localhost:8000/admin/socialaccount/socialapp/add/.

  5. Google reCAPTCHA: By default, the project uses Google's testing keys when in development mode.

Deploying the Project

For instructions on deploying this project in a production environment, kindly consult our deployment guide.

Technical Details

Libraries used in this project are:

Frontend

  • UI Kit : A lightweight and modular front-end framework for developing fast and powerful web interfaces.
  • Places API : Allows user to be able to add addresses based on their current location and also provides autocomplete functionality for ease of use while adding addresses.

Backend

  • Django Allauth: Used to provide Facebook and Google Registration and Login functionality.
  • Django-environ : Used to configure secret keys, API keys through environment variables.
  • Django-recaptcha : Allows us to add Google Recaptcha fields to our forms for spam protection.
  • Stripe: Python wrapper for the Stripe API that allows us to accept payments on our platform.
  • Whitenoise: Allows us to serve static files without relying on nginx or any other external service.

About

A Pizza ordering platform made using Django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 70.0%
  • Python 26.8%
  • JavaScript 1.4%
  • Dockerfile 1.1%
  • Other 0.7%