Skip to content

Customizable Food Ordering Single Page Web Application (SPA) made using Python, Jquery, Heroku, and Bootstrap. Easily add users, food items, and allow users to order food. Automatically calculates the number of food orders, and quantities to avoid headaches when placing the final order. Supports Heroku deployment!

Notifications You must be signed in to change notification settings

JoshuaSmeda/chippies-eats-SPA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChippiesEats - Single page Application (Web)

We South Africans love ordering food. Take the hard work out of ordering in bulk today, let ChippiesEats handle it for you!

Preview

final

Live web example

https://chippies-eats.herokuapp.com/

Tech stack

  • Python
  • Jquery (Ajax)
  • Bootstrap
  • Postgresql
  • Heroku

Overview

There is a administration panel that allows a administrator to add food items, users and view a comprehensive and cumulative list of pending orders

Director (Administration Panel)

admin_panel

Pending orders

pending_orders

Ordering

A user can only place one order before the database record must be deleted. A successful order will appear as follows: order_placed

While a unsuccessful order will appears as follows:
Ordered_before

Example Nginx configuration (Reverse Proxy)

  1. pip3 install -r requirements.txt
  2. python3 app.py
  3. Use the following Nginx configuration as a guideline:
server {
  listen [::]:80 default_server;
  server_name subdomain.domain.tld;

  location / { 
    proxy_pass http://localhost:5000;
  }

  location /director {
    proxy_pass http://localhost:5000;
    auth_basic "Restricted Content";
    auth_basic_user_file /etc/nginx/.htpasswd; # Protected admin route
  }
}

Example Gunicorn webserver deployment

  1. pip3 install -r requirements.txt
  2. gunicorn app:app

Helpful hints

If you have a number of pending orders you want to flush, you can perform a GET request to the following endpoint to flush all pending orders:

/remove_pending_orders

Legal

If there is any copyright infrightment or you would like me to take this down, please reach out to me via Linkedin or my email address and I'll gladly do so!

About

Customizable Food Ordering Single Page Web Application (SPA) made using Python, Jquery, Heroku, and Bootstrap. Easily add users, food items, and allow users to order food. Automatically calculates the number of food orders, and quantities to avoid headaches when placing the final order. Supports Heroku deployment!

Topics

Resources

Stars

Watchers

Forks