Skip to content

Commit d946737

Browse files
authored
Merge pull request #1 from Redislabs-Solution-Architects/master
update to base
2 parents a146259 + 7cf94e5 commit d946737

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

README.adoc

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,37 @@ image::http://pages.brewdis.demo.redislabs.com/images/filter_list-24px.svg[]
7474
. The *Available to Promise* field is updated in real-time based on current difference between supply (*On Hand*) and demand (*Reserved + Allocated + Virtual Hold*).
7575

7676

77-
== Develop
77+
== Configuration
7878

79-
=== Configuration
79+
The app server is built with Spring Boot which can be configured different ways: https://docs.spring.io/spring-boot/docs/2.2.x/reference/html/spring-boot-features.html#boot-features-external-config[Spring Boot Externalized Configuration].
80+
Depending on the way you're running the demo you can either:
8081

81-
The app server configuration is stored in `server/src/main/resources/application.properties`
82+
- create a `application.properties` file based on the https://github.com/Redislabs-Solution-Architects/brewdis/blob/master/brewdis-api/src/main/resources/application.properties[one that ships with Brewdis]
83+
- specify JVM arguments like this:
84+
[source,shell]
85+
----
86+
java -jar brewdis.jar --spring.redis.host=localhost --spring.redis.port=6379 ...
87+
----
88+
- use environment variables:
89+
[source,shell]
90+
----
91+
export spring.redis.host=localhost
92+
export spring.redis.port=8080
93+
export ...
94+
java -jar brewdis.jar
95+
----
8296

83-
Here are the most common configuration options:
97+
Here are the most common configuration options for this demo:
8498

8599
- `spring.redis.host`: Redis database hostname (default: `localhost`)
86100
- `spring.redis.port`: Redis database port (default: `6379`)
101+
- `stomp.host`: Websocket server hostname (default: `localhost`)
102+
- `stomp.port`: Websocket server port (default: `8080`)
103+
- `stomp.protocol`: Websocket protocol (default: `ws`). Use `wss` for secure websockets
87104
- `inventory.generator.rate`: duration in millis the generator should sleep between inventory updates (default: `100`)
88105
- `availability-radius`: radius to find in-store availability (default: `25 mi`)
89106

90-
=== Architecture
107+
== Architecture
91108

92109
{empty} +
93110

0 commit comments

Comments
 (0)