Skip to content

Commit ecea03b

Browse files
committed
Improve wording and formatting
1 parent 6c06212 commit ecea03b

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

Documents/local-dependencies.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,34 @@
1+
# Dev Dependencies
2+
13
This project depends on several services, which all need to be running in order for the project to operate fully.
24

35
Assuming you have Docker-Compose installed, the easiest way to get all of the platform's dependencies up and running with the provided docker-compose dev setup:
46

5-
`docker-compose -f docker-dev.yml up`
7+
```shell
8+
docker-compose -f docker-dev.yml up
9+
```
610

711
Alternatively, you can start each one individually with the following instructions.
812

913

1014
## Write Journal
1115

12-
* The write side of this system is supported by either a local `leveldb` database or Cassandra.
16+
The write side of this system is supported by either a local `leveldb` database or Cassandra.
17+
18+
#### leveldb
1319

14-
### leveldb
20+
`leveldb` is best for local environments and for smoke testing. When using `leveldb`, the project automatically loads sample data into the environment when it starts up.
21+
22+
To use it, set the following environment variable in the same session where you run the project in sbt:
23+
24+
```shell
25+
export HDMA_IS_DEMO=true
26+
```
1527

16-
`leveldb` is best for local environments and for smoke testing. To use it, set the `HMDA_IS_DEMO` environment variable to `true` in the same session where you run the project in sbt. When that var is set, the platform loads sample data automatically upon startup.
1728

18-
### Cassandra
29+
#### Cassandra
1930

20-
If using `Cassandra` is desired, set the following environment variable:
31+
If using Cassandra is desired, set the following environment variable:
2132

2233
```shell
2334
export HDMA_IS_DEMO=false
@@ -52,7 +63,7 @@ A sample file is located in the following folder: `panel/src/main/resources/inst
5263

5364
## Read Journal
5465

55-
* In order to support the read side, a local PostgreSQL and Cassandra server are needed. Assuming it runs on the default port, on the same machine as the API, the following environment variable needs to be set:
66+
In order to support the read side, a local PostgreSQL and Cassandra server are needed. Assuming it runs on the default port, on the same machine as the API, the following environment variable needs to be set:
5667

5768
```shell
5869
export JDBC_URL='jdbc:postgresql://localhost/hmda?user=postgres&password=postgres'
@@ -71,7 +82,7 @@ export CASSANDRA_CLUSTER_PORT=9042
7182

7283
## Apache Zookeeper
7384

74-
* The `HMDA Platform` is a distributed system that is meant to be run as a clustered application in production.
85+
The `HMDA Platform` is a distributed system that is meant to be run as a clustered application in production.
7586
As such, it needs a mechanism for storing configuration information for additional nodes joining the cluster.
7687
`Apache Zookeeper` is used to store this information. To run the project, zookeeper must be running and available in the local network.
7788
An easy way to satisfy this requirement is to launch a docker container with `ZooKeeper`, as follows:

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ is used, see the documentation [here](Documents/cluster.md)
8282

8383
Assuming you have Docker-Compose installed, the easiest way to get all of the platform's dependencies up and running with the provided docker-compose dev setup:
8484

85-
`docker-compose -f docker-dev.yml up`
85+
```shell
86+
docker-compose -f docker-dev.yml up
87+
```
8688

8789
When finished, use `docker-compose down` to gracefully stop the running containers.
8890

0 commit comments

Comments
 (0)