Project files for the Item Catalog Project in the Udacity Full Stack Nanodegree.
This project contains a database of comic book universe characters.
Follow these instructions to set up the Vagrant Linux Environment and the Item Catalog Project
You will need the following Python resources for it to run:
- Python 2.7 or above (https://www.python.org/downloads/).
- Git (https://git-scm.com/downloads).
- Vagrant (https://www.vagrantup.com/).
- VirtualBox (https://www.virtualbox.org/wiki/Downloads).
- Sqlalchemy (https://www.sqlalchemy.org/download.html).
You will need the following other resources for it to run:
- Flask (http://flask.pocoo.org/).
- Httplib2 (https://pypi.python.org/pypi/httplib2/0.10.3).
- Oauth2client (https://pypi.python.org/pypi/oauth2client/).
- Web browser i.e. Chrome (https://www.google.com/chrome/)
- Install Git (https://git-scm.com/downloads) on the local machine
- Install Python 2.7 or above (https://www.python.org/downloads/) on the local machine
- Install VirtualBox (https://www.virtualbox.org/wiki/Downloads) on the local machine
- Install Vagrant (https://www.vagrantup.com/) on the local machine
- Use git clone https://github.com/petergns/item-catalog-project.git to clone this repository.
- Navigate to the cloned repository using Git i.e. cd desktop/local-machine/vagrant
- Run the command 'vagrant up' to download and install the linux operating system.
- Run the command 'vagrant ssh' to log in to the virtual machine.
- Install Flask (http://flask.pocoo.org/) with pip install Flask, if it is not installed already.
- Install Sqlalchemy, Httplib2 and Oauth2client with sudo apt-get install, if they are not installed already.
After the initial setup you can load the project files while connected to vagrant.
Navigate to cd item-catalog-project:
- Run python requirements.txt
- Run python database_setup.py
- Run your web browser.
It uses python to establish a simple item-catalog database with an ability to add and edit new items.
The Item Catalog allows:
- Facebook or Google online login to edit add or delete content.
- Comic book characters to be added from comic book universes.
- New comic book universes to be added for characters.
In order to run the project you must have:
- Run requirements.txt with the python requirements.txt command.
- Run database_setup.py with the python database_setup.py command.
- Checked universe_characters.py in a editor (some of which are featured below), if you would like to add more characters locally.
- Run python universe_characters.py with the python universe_characters.py command.
- Prepared your web browser to navigate to http://localhost:5000
- Run the command python project.py in order to start the item-catalog.
- Navigate to http://localhost:5000 on your web browser for access.
- Atom (https://atom.io/)
- Notepad++ (https://notepad-plus-plus.org/)
- Sublime Text (https://www.sublimetext.com/)
Acknowledgments to Udacity for the resources that helped me develop this.