Skip to content

SI364-Winter2018/HW4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SI 364 - W18 - HW4

DEADLINE: March 25, 2018 at 11:59 pm

You should read all of the below before beginning to ensure you set yourself up well and submit the assignment correctly.

Overview

You've been provided some scaffolding code. On top of the provided code, you'll need to add a number of things to make this application work fully, each marked by TODO 364 inside the app.py file.

Each TODO listed for you is intended to be a small-to-medium size task. In general, you can go through the file top to bottom to address each one, but we've included suggestions in the comments about any time it makes sense to work on a TODO that comes later in the file first.

Your overall objective is to complete building an application that will allow you to search for gifs via the Giphy api, store all searches performed on the app, and allow users to register accounts and log in to save their own personal collections of gifs.

Ron Swanson from Parks and Recreation, dancing

For example, a logged in user could save several different gif collections with different names -- Excited Gifs, Happy birthday gifs, whatever they want. (Example page screenshots will follow shortly, but you can already get started with the templates and complete directions given!)

You will be:

  • Associating data with a user's login using database relationships (and migrations)
  • Building and using many-to-many relationships
  • Practicing using SQLAlchemy for database queries and dealing with query results
  • Building functions for the get_or_create operation that work with a database structure that includes many-to-many relationships
  • Making back-end code work with existing templates

Instructions

  • First, check out the to submit instructions so you know how to begin work on this!
  • Check out app.py, scan through it, read the comments, and complete the TODO 364 todo items one by one.
  • Identify anything in the TODO comments you are confused about so you can ask questions ASAP.
  • Make sure to debug along the way!
  • Then ensure you have everything committed properly and pushed to your new GitHub repo to submit the link properly to Canvas.

To submit (read ALL the below before beginning)

Don't fork this one. Download the link as a .zip file. Unzip the file so you have all the provided, included files in a directory on your computer.

Follow the instructions inside giphy_api_key.py. Then, create a git repository inside that directory on your computer and commit all the files to your git repository.

Then, just as you did for the midterm assignment, create a GitHub repository for HW4 on your account called HW4_364. (It must be called this to be graded.)

You may create a private repository if you want, and if you do that, you must also add all three of us instructors as collaborators to your repository. Otherwise we will not be able to see and grade it.

Here is how to get a GitHub student developer pack so you can have unlimited private repositories. (The student developer pack also includes access to a bunch of other useful/fun software tools! It is free for all students; follow the instructions at that link.)

Push all of the code files, including any additional files you add and all included files, to this GitHub repository.

Check out the midterm instructions for a reminder of how to add all 3 of us instructors (Jackie, Mauli, Sonakshi) as collaborators to the repository you submit.

Submit the link to your GitHub repository on the Canvas assignment for HW4. It should take the form of: https://github.com/YOURGITHUBUSERNAME/HW4_364

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published