You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+57-9Lines changed: 57 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,15 +10,63 @@ Here is the [contract](https://github.com/specmatic/specmatic-order-contracts/bl
10
10
11
11
The architecture diagram was created using the amazing free online SVG editor at [Vectr](https://vectr.com).
12
12
13
-
### How to run the application?
13
+
### How to run the application manually?
14
14
15
-
1. Build the project using : `./mvnw clean install`
16
-
2. For unix platform, run the application using : `./mvnw spring-boot:run`
17
-
3. For windows platform, run the application using : `mvnw.cmd spring-boot:run`
15
+
1. Build the project using:
16
+
- For unix platform and powerShell:<br/>
17
+
```shell
18
+
./mvnw clean install
19
+
```
20
+
21
+
- For windows command prompt:<br/>
22
+
```shell
23
+
mvnw.cmd clean install
24
+
```
25
+
26
+
2. Run the application using:
27
+
- For unix platform and powerShell:<br/>
28
+
```shell
29
+
./mvnw spring-boot:run
30
+
```
31
+
32
+
- For windows command prompt:<br/>
33
+
```shell
34
+
mvnw.cmd spring-boot:run
35
+
```
18
36
19
37
### How to test the application?
20
-
1. Using maven: `mvn clean test`
21
-
2. Using docker:
22
-
- Start Docker Desktop
23
-
- Run the application `./mvnw spring-boot:run`
24
-
- Run the tests `docker run --network host -v "$PWD/specmatic.yaml:/usr/src/app/specmatic.yaml" -v "$PWD/build/reports/specmatic:/usr/src/app/build/reports/specmatic" specmatic/specmatic test --port=8090 --host=host.docker.internal`
38
+
39
+
#### 1. Using maven:
40
+
- For unix platform and powerShell:<br/>
41
+
```shell
42
+
./mvnw test
43
+
```
44
+
45
+
- For windows command prompt:<br/>
46
+
```shell
47
+
mvnw.cmd test
48
+
```
49
+
50
+
#### 2. Using Docker Desktop:
51
+
52
+
1. Run the application using:
53
+
- For unix platform and powerShell:
54
+
```shell
55
+
./mvnw spring-boot:run
56
+
```
57
+
58
+
- For windows command prompt:<br/>
59
+
```shell
60
+
mvnw.cmd spring-boot:run
61
+
```
62
+
63
+
2. Run the contract tests using:
64
+
- For unix platform and powerShell: <br/>
65
+
```shell
66
+
docker run --rm -v --network host "$(pwd)/specmatic.yaml:/usr/src/app/specmatic.yaml" -v "$(pwd)/build/reports/specmatic:/usr/src/app/build/reports/specmatic" specmatic/specmatic test --port=8090
67
+
```
68
+
69
+
- For windows command prompt:<br/>
70
+
```shell
71
+
docker run --rm -v --network host "%cd%/specmatic.yaml:/usr/src/app/specmatic.yaml" -v "%cd%/build/reports/specmatic:/usr/src/app/build/reports/specmatic" specmatic/specmatic test --port=8090
0 commit comments