Squash Tomato Journal — Oct. 23, 2017 —23:30

Chris Johnson
The Squash and the Tomato
1 min readOct 24, 2017
  1. Fucking forgot to change my port over from 7777 to 80 when I transferred a test to my droplet… spent 2 hours “diagnosing” (yelling at my computer) the issue until I happened to accidentally open my environment variables.
  2. Added add functionality — users can add items to their list. Input is validated, escaped, and returns if no value.
  3. Added clear functionality — users can clear their list.
  4. Updated sketch mockup file for Squash Tomato.
  5. Rewrote the add and clear functionality && my pug files (express view engine = pug) — I changed my AJAX requests to GETs to use the response to render new list items (html via JavaScript 😆 ) with the newly added item’s data instead of forcing a reload, which would use pugs “for item in items” to render the newly updated items array.
  6. Began adding total functionality, which introduced a need to re-instantiate an array of qty and value inputs + their respected event listeners. This introduced an issue with every time I get total, It creates another event listener on each qty and value inputs… Still working on it.

--

--

Chris Johnson
The Squash and the Tomato

Full-stack Surgeon (Design, Vue, Node, mongoDB), knowledge seeker, world dominator, Harry Potter and anime addict, volleyball player, and unfiltered.