# Week 4 - ABEH presentation Microblogging website using a server with Node.js --- ![](https://i.imgur.com/ekfe4SE.png) --- ![](https://i.imgur.com/fxcQ6bW.png) --- ## Core User Stories - [x] A page with a form to submit posts, and a page showing all posts - [x] All static assets served correctly - [x] Tests for each server route - [x] Responsive, mobile-first design - [x] Ensure your app is accessible to as many different users as possible - [ ] *Stretch goal*: As an impulsive person, I want to delete my posts so nobody can see them anymore --- ## Team Journey ### DAY 1 - Thought it was a good idea to group mob the ⚠️ WHOLE ⚠️ server: - The Eternal Optimist: "Yeah we can knock that out in 15" Rest: "yeah mate yeah" ![](https://media.giphy.com/media/r6BjJgDkeQcGA/giphy.gif) - Did not go as expected --- ### DAY 2 - Finished off the server and wisely split into pairs - Worked on refactoring the server and tests - In the (late) afternoon we focused on CSS and Heroku --- ## Key things we wanted to focus on this week - Pairing with everyone in the team - Making `PORT:` related analogies :ship: --- But sometimes we were a little lost at sea ![sea](https://media3.giphy.com/media/bZBmitwUwKtDa/200.gif?cid=e1bb72ffe1ebfe5e919b5f48714c8ef2abf02514fb352860&rid=200.gif) --- ## Team Struggles - Mobbing something completey new - Understanding the request/response flow - Parsing the request data and serving changes with response - Heroku/ Haiku > *"heroku: how to as sewing seeds in a field it is f#cking hard"* by ABEH --- ## Team Achievement / What we're proud of - Our haiku - --- ## Personal achievements/struggles --- ### Cam (SM) - Group mob! - Create post test (Network TAB!!) ```javascript= test("Does blog post send correct data", t => { supertest(router) .post("/create-post") .send('blogpost=hello') .redirects() .expect(200) .expect("Content-Type", /html/) .end((err, res) => { t.error(err); t.equal(res.text.includes('hello'), true); t.end(); }); }); ``` --- - CSS cram! ![](https://media.giphy.com/media/XIqCQx02E1U9W/giphy.gif) --- ### Hettie - Testing (Redirection) - Routers - Handlers --- ### Joe - Learning what I don't know ![](https://media0.giphy.com/media/rTa37gKOA5cPu/200.gif?cid=e1bb72fffc86c36e020c4e0da5438c97a86d1cdaa5940a08&rid=200.gif) --- - Turning a vision into reality ```javascript= const blogPost = { post1: {[name: 'Tim'], [title: '']...} post2: {[name: 'Tim'], [title: '']...} }; ``` --- ### Tom :taco: - Deploying on heroku! - Testing --- ## Team feels / vibes - Still very fun - Maybe slightly less productive - To mob or not to mob? - Breaks and breathing - Getting something over the line ![finish](https://media1.giphy.com/media/BDagLpxFIm3SM/200.gif?cid=e1bb72ff447bdf914db2bba8cf04e7f7ead54ce55176397c&rid=200.gif) | Estimated | Actual | | -------- | -------- | -------- | | | Much more than expected | Text |
{"metaMigratedAt":"2023-06-15T05:46:20.583Z","metaMigratedFrom":"Content","title":"Week 4 - ABEH presentation","breaks":true,"contributors":"[{\"id\":\"b6a31e78-07d2-4282-beaf-ce34bf42c9b2\",\"add\":1746,\"del\":20},{\"id\":\"bd6764bd-ae37-4f90-bb83-98f8266bf1dd\",\"add\":857,\"del\":92},{\"id\":\"89613c1e-a1b5-4e82-9c3e-7813a336c5a6\",\"add\":35,\"del\":0},{\"id\":\"b2bfa6ff-3025-4a42-87c0-6d3101a863fe\",\"add\":453,\"del\":2}]"}
    211 views
   Owned this note