Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

the-chris-mitchell/Udacity-FSND-P3-Restaurants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Udacity FSND Project 3 - Restaurants

Summary

This is a simple catalogue app created using Flask, and was created as part of the Udacity Full Stack Nanodegree program. By default it is set up to handle Restaurants and their matching menu items, but could be adapted to any kind of catalogue. The app has Google and Facebook oauth integration, CSRF protection, seperate views for authenticated users, and a JSON/XML API.

Requirements

Setup

  1. Clone to your local machine: git clone https://github.com/eldonuts/Udacity-FSND-P3-Restaurants.git
  2. Alter the config.py file to your specifications (you will want to change the secret key before deploying live)
  3. Run: python setup.py
  4. To start the app you just need to run: python run.py
  5. That's it, you're good to go (without auth), if you want some test data please look below.

Test Data

If you wish you generate some test data, I have added a script to grab the top 20 restuarants for NYC (from Zomato) and populate them with a bunch of random menu items. If you wish to try this out, just sign up for a Zomato API key here and add this line to a new file settings.cfg (in restaurants dir): ZOMATO_API_KEY = 'xxxx' (where xxxx is your new key).

Once you're ready you can simply run: python test_db_populate.py

OAUTH Setup

To get logins working you will need to sign up for OAUTH keys for Facebook and Google, or alter the app to remove/add others at your discretion.

Once you've gone through the instructions and gotten the keys, you need to download them in JSON format and save them to the secrets folder (by default set to /secrets), and call them facebook_client_secrets.json and google_client_secrets.json respectively.

Credit

  • United Bootstrap Theme
  • Login views based on content from the FSND course, altered to fit requirements.

About

Completed for Udacity Full Stack Nanodegree Project 3 - Part 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published