View Code? Open in Web Editor
NEW
Item Catalog written in python
Python 64.13%
HTML 34.65%
CSS 0.23%
Shell 0.98%
item_catalog's Introduction
Item Catalog for the Udacity Full Stack Web Developer Nanodegree
- Differentiates between visitors (not logged in) and users (logged in)
- Visitors can:
- Use Google login
- Use Facebook login
- View restaurants
- View menus
- Access JSON data
- Users can:
- Create new restaurants
- Update their own restaurants
- Delete their own restaurants
- Add menus to their own restaurants
- Edit their own menus
- Delete their own menus
- Flask
- Sqlalchemy
- SQLite
- Oauth2
- Vagrant
- Httplib2
- Bootstrap3
- Download and install python 2.7
- Download and install vagrant and virtual box
- Clone repo
- Open terminal and navigate to repo
- Launch vagrant virtual machine 'vagrant up' command from the terminal
- Log into vagrant virtual machine with 'vagrant ssh' command from terminal
- For Google Oauth login, create your project at https://console.developers.google.com
- For Facebook Oauth login, create your project at https://developers.facebook.com
- Save the Oauth secrets in separate *.json files in repo folder
- Change app IDs in login.html templates according to your Google & Facebook app IDs
- Change user to postgres super user
sudo -u postgres -i
- Create vagrant role as superuser
createuser vagrant --superuser
- Logout as postgres superuser
logout
- Create project db with postgres
createdb restaurantmenuwithusers.db
- Run
python databasesetup.py
- Run project.py in terminal with
python project.py
command from the terminal
- Check out app on http://localhost:5000 (vagrant default port)
item_catalog's People
Contributors
Watchers