This is a web-based client that allows exploring the history of models stored in a GitHub repository.
The explorer can be accessed in this website: https://munidiff.github.io/
-
Provide a URL to a GitHub commit. You can pre-load the explorer with an example URL by using this link.
-
After providing a URL, hit the search icon on the right of the search bar. A list of commits should appear on the left, with the details of the commit from the URL appearing below the search bar, including a list of changed models.
-
Click on any of the changed models to see the difference reports below. It might take a while to appear, as the Google Cloud Functions starts and answer the query.
-
The graphical and textual reports should appear.
-
You can click any of the commit messages on the left to change the focus to that commit, and repeat the process.
Both this frontend and the explorer's backend can be run locally for development purposes.
The backend of this explorer is based on the modiff
model comparison tool. This backend is currently deployed online, but it can be ran locally to speed up development:
Steps:
- Checkout the backend's repository.
- Run
mvn function:run
from a terminal. - To instruct the frontend to use the local service, modify the
useLocalBackend
property at thejs/config.js
file from this repository:
useLocalBackend: true,
- After checking out the code, run
npm install
. - Run a web server and watch for changes with
npm run serve
(uses webpack, details inpackage.json
) - A web browser tab should have opened at
localhost:9000