Code Monkey home page Code Monkey logo

online_restaurant's Introduction

online_restaurant

Description:

An online restaurant where you can view food and order it, paying its cost using a card. Restaurant employees also have additional opportunities to create dishes. The site also has a forum where you can create posts about dishes and comments on them. There is also a system for assessing the quality of dishes, email address verification, a page with customer orders and the ability to log in to the site using GitHub.

Check it out!

online_restaurant deployed to Render

Installation

(example for macos)

Python3 must be already installed and postgres_db must be created

git clone https://github.com/Paul-Starodub/online_restaurant
cd online_restaurant
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python manage.py migrate
brew services start postgresql
brew services start redis
celery -A online_restaurant worker -l INFO
stripe listen --forward-to localhost:8000/webhook/stripe/
python manage.py runserver

Features

  • Authentication for user via forms or via GitHub
  • Manage the creation of food orders using your personal account and shopping cart. Payment by credit card. Creation of reviews on the quality of the dish and comments on it, a system of likes.
  • Powerful admin panel for advanced managing

Demo

Use the following command to load prepared data from fixture to get demo access to the system:

python manage.py loaddata restaurant_data.json.

After loading data from fixture you can use following users (or create another one by yourself):

  • Login: admin (superuser)
  • Password: vovk7777

  • Login: red (staff)
  • Password: vovk7777

  • Login: green
  • Password: vovk7777

You can absolutely safely check payment for orders in test mode using stripe with card information 4242424242424242, MM/VV - any date in the future, CVC - any three digits, cardholder name - any name

After cloning, you need to create your .env file and register your variables in it. After that, everything will work. For an example, see the file .env.sample

Website interface

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.