GithubHelp home page GithubHelp logo

danrneal / pinocchios-pizza-and-subs Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 53 KB

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

License: MIT License

Python 42.57% JavaScript 6.32% CSS 1.58% HTML 49.53%

pinocchios-pizza-and-subs's Introduction

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.

pinocchios-pizza-and-subs's People

Contributors

danrneal avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.