File tree Expand file tree Collapse file tree 1 file changed +33
-5
lines changed
Expand file tree Collapse file tree 1 file changed +33
-5
lines changed Original file line number Diff line number Diff line change 1212
1313```
1414
15- # Installation Guide
15+ # I - Installation Guide
1616
1717
18- Clone the repo
18+ #### a) Clone this repo
1919
2020```
21+ git clone https://github.com/DataStax-Examples/getting-started-with-apollo-java.git
22+ ```
23+
24+ #### b) compile and start the backend * (java11+ required)*
25+
26+ ```
27+ cd getting-started-with-apollo-java
28+
2129mvn spring-boot:run
2230```
2331
24- # Building the docker image
32+ #### c) Access the API documentation from a browser
33+
34+ [ http://localhost:8080 ] ( http://localhost:8080 )
35+
36+ * Note: If you want to change the listening port of the application, locate the file ` src/main/resources/application.yml ` and change key ` server.port ` *
37+
38+ #### d) Setup UI to use this backend
2539
40+ To setup the UI to connect to Java backend define the ` .env ` file in the following way:
41+
42+ ```
43+ BASE_ADDRESS=http://localhost:8080/api
44+ ```
45+
46+
47+ # II - Building the docker image
48+
49+ First, you need to build the project and specially the ` jar ` deliverable with the following:
2650```
2751mvn clean install
2852```
2953
54+ Then build the images using the following command in same folder as ` pom.xml ` file:
3055```
31- mvn dockerfile:build
56+ mvn dockerfile:build
3257```
3358
34- Service Backend for Apollo Demo
59+ To run the project in docker and expose correct port use the following:
60+ ```
61+ docker run clunven/getting-started-with-apollo-java:latest -p 8080:8080
62+ ```
You can’t perform that action at this time.
0 commit comments