This is a Python web app using the Flask framework and a Postgres database
- It can be used as a playground for testing SQL queries
Launch in Codespaces (Create Codespace on Main)
Wait for SQLTools extension to load on the left navbar of VS Code
Connect to the postgres database in the SQLTools menu (the cylinder) - if this does not work by default, the connection info is in the .env file
run
python3 data_utils.pyto populate the postgres tables with BU dining hall informationThere should be a container database tab from SQLTools, you can type in a query and press
Run on Active Connectionto see the resultRun
python3 -m flask runto start the flask serverGo to the
portstab in the VS Code console, and right click on port 5000. Changeport visibilityto publicOpen the link to port 5000 and try out the flask app
Note that Github Copilot is automatically installed and offers terrible suggestions, if this is a problem you can disable it in extensions