Giter VIP home page Giter VIP logo

restaurant-menu-app-crud's Introduction

Project: Restaurant Menu App - CRUD

  • This is a Flask project that I have created with the help of Udacity course curriculum to learn and demonstrate CRUD functionality along with OAuth authentication and authorization

Prerequisites

Run the virtual machine

  1. Open the your preferred Terminal program
  2. Using the terminal, change directory to oauth (cd oauth)
  3. Type vagrant up to launch your virtual machine.

Starting the Vagrant VM

  • Once it is up and running, type vagrant ssh. This will log your terminal into the virtual machine

  • When you want to log out, type exit at the shell prompt. To turn the virtual machine off (without deleting anything), type vagrant halt.

  • If you do this, you'll need to run vagrant up again before you can log into it.

Now that you have Vagrant up and running type vagrant ssh to log into your VM.

Checking shared VM Folder

  • Change to the /vagrant directory by typing cd /vagrant.

This will take you to the shared folder between your virtual machine and host machine.

  • Type ls

This is to ensure that you are inside the directory that contains project.py, database_setup.py, and two directories named 'templates' and 'static'

Running the Restaurant Menu App

  1. In the terminal type python database_setup.py, to create the sqlite database, locally
  2. Type python lotsofmenus.py, to populate the created database
  3. Type python app.py, please visit http://localhost:5000 on your preferred browser

API Endpoints

While the app is successfully running respective JSON data can be viewed at the below endpoints

JSON APIs to view Restaurant Menu details

/restaurant/int:restaurant_id/menu/json

JSON APIs to view Menu item details

/restaurant/int:restaurant_id/menu/int:menu_id/json

Acknowledgments

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.