commit | author | age
|
a2f573
|
1 |
# gateway microservice v1 |
c551f2
|
2 |
|
RS |
3 |
This is a simple microservice that simulates a payment gateway service. |
|
4 |
It accepts payment amounts and returns a randomly generated transaction id. |
|
5 |
|
|
6 |
This project uses `Quarkus`, the Supersonic Subatomic Java Framework. |
|
7 |
|
|
8 |
If you want to learn more about Quarkus, please visit its website: https://quarkus.io/ . |
|
9 |
|
|
10 |
## Running the application in dev mode |
|
11 |
|
|
12 |
You can run your application in dev mode that enables live coding using: |
|
13 |
``` |
|
14 |
mvn clean quarkus:dev |
|
15 |
``` |
|
16 |
|
|
17 |
## Packaging and running the application |
|
18 |
|
|
19 |
The application is packageable using `mvn clean package`. |
a2f573
|
20 |
It produces the executable `gateway-1.0.0-runner.jar` file in `/target` directory. |
c551f2
|
21 |
|
a2f573
|
22 |
The application is now runnable using `java -jar target/gateway-1.0.0-runner.jar`. |
c551f2
|
23 |
|
RS |
24 |
## Creating a native executable |
|
25 |
|
|
26 |
You can create a native executable using: `mvn clean package -Pnative`. |
|
27 |
|
|
28 |
Or you can use Docker to build the native executable using: `mvn clean package -Pnative -Dquarkus.native.container-build=true`. |
|
29 |
|
a2f573
|
30 |
You can then execute your binary: `./target/gateway-1.0.0-runner` |
c551f2
|
31 |
|
6f3abf
|
32 |
If you want to learn more about building native executables, please consult https://quarkus.io/guides/building-native-image-guide . |