Skip to content

m1221/catalog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README.md file for Udacity Fullstack Nanodegree Catalog Project

Student: Mario P. Student OS: Windows 8.1 GitHub: m1221

File log for Catalog:

  1. README.md
  2. icgdb_database_setup.py
  3. db_populate.sql
  4. flask_server.py
  5. static/style_base.css
  6. static/pics (multiple image files)
  7. templates/ (multiple html files)

Instructions for setup:

  1. Install Flask-SeaSurf
  • For those with PIP
    • `$ pip install flask-seasurf
  • For those without PIP
    • $ easy_insall flask-seasurf
  1. For Google SignIn, access Google Developers Console and create a project according to Udacity's guidelines.
  2. Download the JSON file from the Developers Console and move this file into Catalog directory.
  3. Change its name to 'client_secrets.json'
  4. Go to login_html and change the value of 'data-clientid' attribute to the client-id found in the client_secrets.json file
  5. Go to db_populate.py, read lines ~28-34 regarding the use of a 'superuser'

Instructions for running:

  1. In GitBash, cd to Udacity prepared Vagrant directory
  2. Launch VM by VirtualBox configured with Vagrant $vagrant up
  3. Log into the VM $vagrant ssh
  4. cd to catalog directory
  5. Create the database $python icgdb_database_setup.py
  6. Populate the database $python db_populate.py
  7. Serve the application $python flask_server.py
  8. Open your browser and access the page via localhost:5000/

This project has the following extra credit functionality:

  1. API Endpoints JSON, XML
  • to access the endpoints, add "JSON" or "XML" to the end of a URL
  • endpoints exists for a game, games, genres, and publishers
  1. CRUD: READ (image urls in DB)
  2. CRUD: CREATE, UPDATE (upload and update images)
  3. CRUD: DELETE (require token submission for POST requests... frankly, I don't think I did the best job here. See inline comments for further explanation )
  4. Comments

About

Internet Computer Game Database - 'catalog' project for Udacity Full Stack nanodegree. Uses Flask framework and Jinja2 templates.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published