COMS W4156 Team Project: JICC
- get dining hall menu items
- this API receives a dining hall ID and returns a list of menu items for that dining hall
@app.route('/getDiningMenu/<hallID>')
- get dining halls
- this API returns information about each dining hall in the database
@app.route('/getDiningHalls')
- get food item information
- this API returns information about all the food items in the database
@app.route('/getFoodItems')
- get food reviews
- this API receives a food item ID and returns a list of reviews for that item.
@app.route("/getFoodReviews/<foodId>")
- get dining hall swipes
- this API receives a dining hall ID and returns a list of timestamps indicating when a person has reviewed that dining hall.
@app.route("/getDiningHallSwipes/<diningHall>")
- get top menu items
- this API returns the top 10 rated menu items based on the reviews submitted by users.
@app.route("/topMenuItems")
- get top dining halls
- this API returns the top rated dining halls in order from most popular to least popular based on the reviews submitted by users.
@app.route("/topDiningHalls")
- get dining hall sign ins
- this API returns the number of dining hall sign ins per dining hall.
@app.route("/getDiningHallSignIns")
python3 -m venv env
source env/bin/activate
pip3 install -r requirements.txt
We assume there is a PostgreSQL instance running on port 5432 in the GCP cluster. If one is not started, follow this guide
To start the Flask server, run
python3 Src/server.py
In the source directory: This should take about 2 minutes.
python3 -m unittest
Our CI reports are located in Github Actions: /~https://github.com/tinedkim/COMSW4156_JICC/actions/workflows/python-app.yml
The CI reports include coverage reports, style checker reports, and bug finder reports.
SonarCloud report: https://sonarcloud.io/summary/overall?id=tinedkim_COMSW4156_JICC