Squash Tomato Journal — Oct. 23, 2017 —23:30
Published in
1 min readOct 24, 2017
- 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.
- Added add functionality — users can add items to their list. Input is validated, escaped, and returns if no value.
- Added clear functionality — users can clear their list.
- Updated sketch mockup file for Squash Tomato.
- 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.
- 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.