# Movie Review Generator

---
## Planning the project
- Followed a different approach and made use of the project board and checkboxes more
- Rather than jump into wireframing the project, we added the tasks to the project board, assigned labels and divvied them up into issues.
- In doing so, the workflow was much more streamlined this week and everyone had a clear idea of what was going on
---
## Project Management
We used the rating methodology and found it useful - it caused us to recalibrate!
- E0 Simplest task
- E1 Simple exercise
- E3 Relatively easy challenge (~1/4 day)
- E5 Know how to do but takes some thinking (~1/2 day)
- E8 Challenging. May require a technical spike (~1day)
---

---
* Next time we could estimate points we would complete at the beginning and compare that to the actual.
* We could also give actual ratings to each issue as well
- We focused on building the project board, and assigning
---

---
## Problems and how we overcame them
- Remote working
- Scheduled regular stand-ups throughout the day to
- Accessibility
- Conducted an audit and the code review pointed out some issues with our code.
- Navigating the documentation API
---
## Selecting the API's
---
### The Movie DB
Lots of info about all kinds of movies, a bit like IMDB
(https://www.themoviedb.org/documentation/api)
---
### pushshift.io => Third party reddit API
A tool for searching Reddit Comments and Submissions
[](https://pushshift.io/)
https://github.com/pushshift/api
The docs on the website are not as good as the github readme
https://www.reddit.com/r/redditdev/comments/3zug2y/a_tool_for_searching_reddit_comments_and/
---
### Honourable mentions
- Guardian news website
- Donald Trump Quotes
- Github
- Cat/animal gifs
- Pub finder
- Corp. jargon
- Eff off
---
## Learning takeaways
### Ivo
- Querying APIs (obviously)
- UNIX time
- That I should 'think' in terms of accessibility
---
### Lizzy
- Github project boards and automation workflow
- Implementing the Fetch request and extracting the data from it
- Different approaches to extracting the data, in the pair that I worked in we stored the data we extracted from the API in an object. Then, passed this object to a function for DOM manipulation
---
```javascript=
putInTheDom({
title: firstResult.original_title,
movie_img: firstResult.poster_path,
release_date: firstResult.release_date,
synopsis: firstResult.overview
```
- Snippet of code from our fetch request of the data we extracted.
- We decided to split up the code for readability
---
### Kat
- Understand how to use and implement API's
- Better at readinig the API Documentation
- Improve comunication skill when explaining code
- Feel comfortable with working remote (hangout, VS live share, slack)
---
### Joe

1. (Kind of) getting callbacks and async
2. Interacting with API documentation
---
## Learning Concepts
### Unix Time
Unix time is a system for describing a point in time.
It is the number of seconds that have elapsed since the Unix epoch, that is the time 00:00:00 UTC on 1 January 1970, minus leap seconds.
#### Example:
1583938739 Is equivalent to: 03/11/2020 @ 2:58pm (UTC)
---
Code that converted Unix time to UTC:
```javascript=
// unixTimeContent == 1583938739
let dateContent = new Date(unixTimeContent * 1000);
// dateContent == Wed Mar 11 2020 14:58:59 GMT+0000 (Greenwich Mean Time)
dateContent = [dateContent.getDate(), dateContent.getMonth(), dateContent.getFullYear()].join("/");
// now dateContent is in dd/mm/yyyy format
```
---
## Takeaways and improvements
{"metaMigratedAt":"2023-06-15T05:14:04.294Z","metaMigratedFrom":"Content","title":"Movie Review Generator","breaks":true,"contributors":"[{\"id\":\"b6a31e78-07d2-4282-beaf-ce34bf42c9b2\",\"add\":2129,\"del\":1158},{\"id\":\"ae8469a7-16c2-4aaa-9ad3-48227eb54cd9\",\"add\":398,\"del\":32},{\"id\":\"6898df79-5b31-4c78-acd1-86a97123cdc1\",\"add\":1536,\"del\":7},{\"id\":\"b4905d1f-6321-4767-ab1f-4fc252ee8196\",\"add\":1331,\"del\":254}]"}