Udacity Full Stack Web Development - Project 3: Item Catelog
This is my third in a series of projects through Udacity's Full Stack Web Development course. For this project I have developed an application that provides a list of items within a variety of categories, as well as provide a user registration and authentication system.
- Vagrantfile : Contains vagrant machine
- pg_config : configuration for vagrant machine
- application.py : Python script with main Flask application
- database_setup.py : Python script for sqlalchemy schemas
- client_secrets.json : JSON formatted file containing OAuth information for Google login
- static : Folder that contains css, fonts, js and images
- templates : Folder that contains all HTML templates
- Install Vagrant and VirtualBox
- Clone this repository
$ git clone https://github.com/ferristocrat/udacity_fullstack_p3_item-catalog.git
- Optional: Replace
client_secrets.json
with JSON from Google project - Optional: If you replaced
client_secrets.json
you'll need to replacedata-clientid
on line 61 inlogin.html
- Launch the Vagrant VM
- Open shell and navigate to vagrant folder of this repository
- Type
vagrant up
- SSH into the Vagrant VM
- Type
vagrant ssh
- Type
- Navigate to the correct folder ie
cd /vagrant/catalog
- Initialize the databse
- Type
python database_setup.py
(Note that the database is empty by default)
- Type
- Run the Flask web server
- Type
python application.py
- Type
- In your browser visit
http://localhost:8000
to view the application (note that you will not be able to add/edit/delete items unless logged in)