Coder Social home page Coder Social logo

takeaway-app's Introduction

PYTHON PROJECT

Food Takeaway


I have been tasked with making an order management system for a takeaway. This takeaway takes orders over the phone and enters them into the system for the kitchen to cook and keep track of them.

The app is able to create a customer with a name, phone number, address, and a list of orders.

A customer is able to place several orders. The orders contain a list of item's. The item's have a name and a price.


To use the app you will need:

Python3 and postgresql installed on your machine,


You will also need the following packages:

pip3 install flask

pip3 install flask-SWLAlchemy

pip3 install flask-migrate

pip3 install python-dotenv


You will need to set up a database using the following command in terminal:

create db itemOrders_app


On line 8:

app.config["SQLALCHEMY_DATABASE_URI"] = "postgresql://__________@localhost:5432/ItemOrders_app"

you will need to enter your username after:

postgresql://

and before:

@localhost:5432/ItemOrders_app"


To populate the database you will need to run the following commands in terminal:

flask db upgrade

flask seed


To run the application use the following command in terminal:

flask run


Copy the http link and paste into the chrome browser.

takeaway-app's People

Contributors

andy-brown87 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

monkfishbest

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.