|
2 | 2 | This project is to develop a dashboard for the presentation of a range of metrics and visualisations useful to software engineers. |
3 | 3 |
|
4 | 4 | ## Setup Instructions |
5 | | -### Run Version on GitHub |
6 | 5 |
|
7 | | -To run the version on GitHub, clone the repo to your desktop. |
| 6 | +If you haven't done this yet, create a file named `application.properties` and inside, put the following |
8 | 7 |
|
9 | | -#### Run by Script (recommended) |
| 8 | + github.access.token=<your-github-access-token> |
| 9 | + |
| 10 | +You can make a GitHub access token as described [here](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#creating-a-fine-grained-personal-access-token). |
10 | 11 |
|
11 | | -Run the webapp by right-clicking on setup.bat and selecting `run`. |
12 | | - |
13 | | -Then, you can open the web app on localhost:8080. This will also run tests! |
14 | | - |
15 | | - |
16 | | -#### Run from Command Line |
17 | | - |
18 | | -Open a terminal in the directory of the repo. Then, run |
19 | | - |
20 | | - ./mvnw clean install spring-boot:run |
21 | | - |
22 | | -Then, you can open the web app on localhost:8080. This will also run tests! |
23 | | - |
24 | | -### Run Containerised |
25 | | - |
26 | | -If you want to run the web app in a container, first clone the repo to your desktop. Open a terminal in the directory of the repo. Then, run |
27 | | - |
28 | | - ./mvnw clean install spring-boot:run |
29 | | - |
30 | | -This will create the jar file. Then, run the following to build the image. |
31 | | - |
32 | | - docker build -t metrics-image . |
33 | | - |
34 | | -To run the webapp, run |
35 | | - |
36 | | - docker run --name=metrics-container --rm -d -p 8080:8080 metrics-image |
37 | | - |
38 | | -Then, you can open the web app on localhost:8080. |
| 12 | +Then, usually, you can run by running run.bat or just typing `docker-compose up` into terminal. If you're making changes to the app however, you will need to run setup.bat or type `docker-compose build` then `docker-compose up` into terminal. |
0 commit comments