Git Product home page Git Product logo

restaurants-catalog's Introduction

Restaurants Catalog

Restaurants Catalog is a web application that provides a list of restaurants with different menu items.

It integrates third party user registration and authentication. Authenticated users have the ability to create, edit, and delete their own restaurants and menus.

This is my project for the Udacity's Full Stack Web Developer Nanodegree courses Full Stack Foundations and Authentication & Authorization: OAuth.

You can view all of my Nanodegree projects from this repo mohllal/udacity-fsnd.

Prerequisites:

The application was built using Python 2.7. It used SQLite as the underlying database technology. The application uses Flask framework and SQLAlchemy toolkit so you should ensure you have them installed on your machine.

Features:

  • User registration system.
  • Authentication using Google's authentication service.
  • CRUD Restaurant operations.
  • CRUD Menu operations.
  • Review (rate and comment) to other menus.
  • JSON API endpoints for all restaurants, menus, and reviews.
  • CRUD images operations: An image can be added for each restaurant or menu. This can be done by uploading a local file and if no image is added, a default image is shown.
  • Secure against Cross-Site Request Forgery (CSRF) attacks.
  • Elegant UI.

Files:

  • app.py: This file contains the whole server side programming logic of the application.
  • models.py: Contains the database model and is used to create the initial database.
  • restaurantmenu.db: Database file containing some example restaurants, menus and reviews to get started. If you run the models.py file, this file gets replaced with an empty database.
  • queries.py: Contains some examples to test back-end logic.
  • google_client_secrtets.json: Authorization information for Google+ authentication. These can be used to try out the authorization options. However, for serious use, you should aquire your own keys.

Usage:

  1. Clone this repository to your desktop, go to the root directory and run:
python models.py

Now the database has been created. To run the application type:

python run.py

If you want to populate the database with some dummy data type:

python queries.py
  1. Go to localhost:5000 to see the application running.

Built With:

  • Flask: Flask is a microframework for Python based on Werkzeug, Jinja 2 and good intentions.
  • SQLAlchemy: SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL.
  • Bootstrap 3: Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.
  • JQuery: jQuery is a fast, small, and feature-rich JavaScript library..
  • Jinja2: Jinja2 is a modern and designer-friendly templating language for Python, modelled after Django’s templates.
  • httplib2: A comprehensive HTTP client library, httplib2 supports many features left out of other HTTP libraries.
  • oauth2client: oauth2client is a client library for OAuth 2.0.

License:

This software is licensed under the Modified BSD License.

restaurants-catalog's People

Contributors

mohllal avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.