Skip to content

Restaurant menu application built using Python, Flask and SQLAlchemy

Notifications You must be signed in to change notification settings

Hemalatah/Item-Catalog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

06ba2b9 · Apr 15, 2017

History

30 Commits
Apr 10, 2017
Apr 15, 2017
Apr 13, 2017
Apr 10, 2017
Apr 10, 2017
Apr 15, 2017
Apr 10, 2017
Apr 11, 2017
Apr 15, 2017
Apr 10, 2017
Apr 15, 2017
Apr 10, 2017
Apr 10, 2017

Repository files navigation

Item-Catalog

Restaurant menu application built using Python, Flask and SQLAlchemy. This App is integrated with third party user registration and authentication. Installation needed:

  • Virtual Box
  • Vagrant Machine

Guide for installation goes here.

Using the Vagrant Virtual Machine

  • The Vagrant VM has PostgreSQL installed and configured, as well as the psql command line interface (CLI), so that you don't have to install or configure them on your local machine.
  • To use the Vagrant virtual machine, navigate to the full-stack-nanodegree-vm in the terminal, create the oauth directory and clone this repo into it. Then use the command vagrant up (powers on the virtual machine) followed by vagrant ssh (logs into the virtual machine).
  • Remember, once you have executed the vagrant ssh command, you will want to cd /vagrant to change directory in order to work on your project, once your cd /vagrant, if you type ls on the command line, you'll see your oauth folder.
  • You'll need to have your vagrant VM up and be logged into it to run your database configuration file (database_setup.py) as below:
$ python database_setup.py
  • To add the restaurant and menu items into the database:
$ python lotsofmenus.py
  • To run the project:
$ python project.py

Four basic files of the project:

  • the HTML (structure of the pages). Here, I used Flask framework to generate the HTML templates
  • the CSS (the style of the pages). Here, I used Bootstrap as well.
  • the Flask Application (to put it online) it must include authentication/authorization to allow users to login before making changes. Here, I used google and facebook oauth providers.
  • the database (to store and organize the information). Here, I imported SQLAlchemy.

Running your project!

Once you have your database and python files set up, run the app by typing the url

$ localhost:5000

in your browser.

To get the better experience in playing around the application, Try a fresh incognito window for every login and logout inorder to avoid stale cookies and cache to disturb the application.

About

Restaurant menu application built using Python, Flask and SQLAlchemy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published