Student: Mario P. Student OS: Windows 8.1 GitHub: m1221
- README.md
- icgdb_database_setup.py
- db_populate.sql
- flask_server.py
- static/style_base.css
- static/pics (multiple image files)
- templates/ (multiple html files)
- Install Flask-SeaSurf
- For those with PIP
- `$ pip install flask-seasurf
- For those without PIP
$ easy_insall flask-seasurf
- For Google SignIn, access Google Developers Console and create a project according to Udacity's guidelines.
- Download the JSON file from the Developers Console and move this file into Catalog directory.
- Change its name to 'client_secrets.json'
- Go to login_html and change the value of 'data-clientid' attribute to the client-id found in the client_secrets.json file
- Go to db_populate.py, read lines ~28-34 regarding the use of a 'superuser'
- In GitBash, cd to Udacity prepared Vagrant directory
- Launch VM by VirtualBox configured with Vagrant
$vagrant up
- Log into the VM
$vagrant ssh
- cd to catalog directory
- Create the database
$python icgdb_database_setup.py
- Populate the database
$python db_populate.py
- Serve the application
$python flask_server.py
- Open your browser and access the page via localhost:5000/
- 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
- CRUD: READ (image urls in DB)
- CRUD: CREATE, UPDATE (upload and update images)
- 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 )
- Comments