# Dating App Team : Neville, Nafisa, Saki , Maryam --- ### Project Timeline --- ![](https://i.imgur.com/nJkbf12.gif) --- ![](https://i.imgur.com/q8R9H8E.png) --- ![](https://i.imgur.com/luqW4sD.gif) --- ![](https://i.imgur.com/x1DNTkT.png) --- ![](https://i.imgur.com/5MhLaR6.png) --- ### Project Kanban ![](https://i.imgur.com/puqOkYt.png) --- ### User Stories - [ ] User can generate a match on dating site based on inputted information - [ ] I want to see a photo of my match - [ ] I want to know the hobbies of my match - [ ] I want to know my matches sense of humours - [ ] I want to know my matches music preferences - [ ] View the app on all my devices - [ ] As a confused user, I want to be told when something goes wrong - [ ] Tell me when data isn't loading - [ ] I don't want to see inappropriate jokes --- ### Estimates Vs Actual | Tasklist | Estimate | Actual | | ----------- | -------- | -------- | | Checking APIs | E2 |A2 | | Making decisions on User Stories | E2 |A3 | | Styling the webpage. | E2 |A2 | | Individual User Stories | E2 |A3 | --- ### Why I'm proud of us ![](https://media.giphy.com/media/3oEjHV0z8S7WM4MwnK/giphy.gif) - Like everyone this week, we dealt with teammates coming and going to interviews, and I think we just stayed focused and didn't get stressed about perfecting everything. - We learnt a lot from last week, and spent time coming back together to review the code with each other. - Just generally, understood each other better and developed as a team! --- ### Demo https://fac21.github.io/week2-mnns/ --- ### Our Code <iframe src="https://giphy.com/embed/l2JdX1lCEu2NKlNf2" width="480" height="366" frameBorder="0" class="giphy-embed" allowFullScreen></iframe> --- | API Name | Description | Sample URL | | -------- | -------- | -------- | | RandomUser | Person generator | https://randomuser.me/api/| | Bored | Activity suggestions | https://www.boredapi.com/api/activity| | iTunes Search | iTunes content | https://itunes.apple.com/search?term=radiohead| | us-central1-dadsofunny | 'Dad' Jokes | https://us-central1-dadsofunny.cloudfunctions.net/DadJokes/random/jokes| --- ``` != form.addEventListener('submit', (e) => { e.preventDefault(); formData = new FormData(form); data = Object.fromEntries(formData); updateResponse(); grabPerson(data); grabActivity(data); grabSong(data); grabJoke(data); }) ``` --- ``` != const matchHobby = document.getElementById("matchHobby"); const errorMessage = "Sorry, database not loading"; function grabActivity(){ fetch(`https://www.boredapi.com/api/activity?type=${data.type}`) .then((response) => { if (!response.ok){ throw new Error(response.status); } else { return response.json(); }}) .then((json) => writeText(matchHobby, json.activity)) .catch(() => writeText(matchHobby, errorMessage)); } function writeText(element, text) { element.innerHTML = text; } ``` ---
{"metaMigratedAt":"2023-06-15T21:31:02.453Z","metaMigratedFrom":"Content","title":"Dating App","breaks":true,"contributors":"[{\"id\":\"530bdc47-42c6-4c9b-8fb8-f0318bf21e3e\",\"add\":279,\"del\":14},{\"id\":\"e766c134-70b5-4e90-ae12-2b83144c7e0c\",\"add\":1956,\"del\":574},{\"id\":\"a84f02d0-b86d-4b5d-97e0-7bdd156fad86\",\"add\":1244,\"del\":300},{\"id\":\"12ba2d80-f158-4148-9ff5-c50f626d4b40\",\"add\":589,\"del\":1}]"}
    143 views
   Owned this note