Assignment 7

For this assignment, scaffold a new Laravel application called "assignment-7".

In this assignment, you will create a search and results page using the Reddit API. You will have a form with a single input where a user can type in a subreddit like "cats". When the form is submitted via GET, your application will make a GET request to a Reddit API endpoint that looks like this:

GET https://www.reddit.com/r/{subreddit}.json

To get data for the "cats" subreddit, swap {subreddit} with "cats": https://www.reddit.com/r/cats.json

If you remove the .json suffix and view that URL in the browser, you'll see the HTML page for that subreddit.

At a minimum, render title and selftext for each item in children. Once you get it working, cache the response using Laravel's Cache class.

Error handling

Not required, but would make the user experience better!

Submission

Create a video with audio using Zoom where you demo your assignment and explain where you fulfilled or did not fulfill each requirement. Put a link to this recording in the README.md file at the root of your project.

https://classroom.github.com/a/Hi7MCrRk

If you're having problems uploading to GitHub, please zip up your project excluding the vendor folder and email it to the instructor and TA. Please include the Zoom recording URL in the email.