danrneal / pinocchios-pizza-and-subs

This Django-based pizza restaurant app featuring a cart with purchasing through Stripe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pinocchio's Pizza & Subs

This Django-based pizza restaurant app featuring a cart with purchasing through Stripe. It features an admin interface to edit menu items and view pending orders. Users can add items to their cart and view their pending and past orders.

Set-up

Set-up a virtual environment and activate it:

python3 -m venv env
source env/bin/activate

You should see (env) before your command prompt now. (You can type deactivate to exit the virtual environment any time.)

Install the requirements:

pip install -U pip
pip install -r requirements.txt

Create a Stripe account and obtain api keys here

Set up your environment variables:

touch .env
echo DOMAIN="XXX" >> .env
echo STRIPE_SECRET_KEY="sk_test_XXX" >> .env
echo STRIPE_PUBLIC_KEY="pk_test_XXX" >> .env

Usage

Make sure you are in the virtual environment (you should see (env) before your command prompt). If not source /env/bin/activate to enter it.

Usage: manage.py runserver

A sqlite database has been included with the repo. The admin interface can be accessed at /admin and the default admin username:password is admin:Pinocchio.

Screenshots

Pinocchio's Pizza & Subs Menu Page

Pinocchio's Pizza & Subs Cart Page

Pinocchio's Pizza & Subs Orders Page

Credit

HarvardX: CS50's Web Programming with Python and JavaScript

License

Pinocchio's Pizza & Subs is licensed under the MIT license.

About

This Django-based pizza restaurant app featuring a cart with purchasing through Stripe

License:MIT License


Languages

Language:HTML 49.5%Language:Python 42.6%Language:JavaScript 6.3%Language:CSS 1.6%