This project provides a REST API with menus for the dining halls at MTU.
Data is retrieved from the dineoncampus API and automatically curated in order to provide faster access.
This project is built alongside the DISH Frontend, which provides a web interface for the data.
To build and run the Docker image using Docker Compose, use:
docker-compose up --build
docker run -d --name dish-api -p 8080:8080 ghcr.io/d-i-s-h/dish-api:latest
- Java 17
- Python 3
-
Clone the Repository:
git clone git@github.com:D-I-S-H/DISH-API.git cd DISH-API
-
Build the Project using Gradle:
./gradlew build
-
Run the Application:
./gradlew bootRun
Note: Ensure you re-run the Java application to regenerate the database before executing
chartwells_query.py
. -
Access the API:
- The API will be available at
http://localhost:8080
- The API will be available at
In order to populate the database with the latest data, run the following command:
python chartwells_query.py
-
Run the Tests:
./gradlew test
-
View Test Reports:
- Test reports are generated at
build/reports/tests/test/index.html
- Test reports are generated at