CS257 Software Design Wednesday, 21 May 2025 + Maps & graphs - See the new samples in my repo - Quick walkthrough + Breaking a project into tiny testable steps For yesterday's assignment, goal: (* = already done) - on stearns, cd to repo, cd to webapp - * python3 app.py 0.0.0.0 MY_PORT - in browser - * go to http://stearns.mathcs.carleton.edu:MY_PORT/ - see Get Data button - click Get Data button - see some data that came from database - what happened after the button click? - JS handler function gets called - fetch(api url,...) - * api.py route gets invoked, talks to postgres, gets some data, turns it into JSON, and returns it - when fetched results return, JS modifies UI to reflect the data So, how to proceed? - Create an html page with a Get Data button [test: open the web page with a browser; is the button there? yay] - Move that html page into Flask templates folder and associate it with route / [test: launch Flask app; point browser to http://stearns...:MY_PORT/ is the button there? yay] - Add JS to the html page; when page loads, show me a "hello world" alert (involves adding a "