Skip to content

Commit

Permalink
Merge branch 'release/1.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasrafael committed Nov 27, 2019
2 parents 5f65f16 + 683c9ac commit 6a5acda
Show file tree
Hide file tree
Showing 12 changed files with 563 additions and 182 deletions.
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ MONGODB_URI=mongodb://127.0.0.1:27017/ocariot-ds-agent
# default value: mongodb://127.0.0.1:27017/ocariot-ds-agent
MONGODB_URI_TEST=mongodb://127.0.0.1:27017/ocariot-ds-agent-test

# REDIS_URI: Redis database connection URI. Using for sync jobs.
# default value: redis://127.0.0.1:6379
REDIS_URI=redis://127.0.0.1:6379

#################################################################################################
##################################### MESSAGE CHANNEL SETUP #####################################
#################################################################################################
Expand Down
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ services:
- rabbitmq
- mongodb
sudo: false
cache:
directories:
- node_modules
before_script:
- sudo rabbitmqctl add_vhost ocariot
- sudo rabbitmqctl set_permissions -p ocariot guest ".*" ".*" ".*"
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Microservice responsible for data synchronization of FitBit and CVE platform wit
## Prerequisites
- [Node 8.0.0+](https://nodejs.org/en/download/)
- [MongoDB Server 3.0.0+](https://www.mongodb.com/download-center/community)
- [Redis Server 5.0.0+](https://redis.io/download)
- [RabbitMQ 3.7.0+](https://www.rabbitmq.com/download.html)

---
Expand All @@ -31,6 +32,7 @@ Application settings are defined by environment variables. To define the setting
| `SSL_CERT_PATH` | SSL/TLS certificate. | `.certs/server.crt` |
| `MONGODB_URI` | Database connection URI used if the application is running in development or production environment. The [URI specifications ](https://docs.mongodb.com/manual/reference/connection-string) defined by MongoDB are accepted. For example: `mongodb://user:pass@host:port/database?options` | `mongodb://127.0.0.1:27017`<br/>`/ocariot-ds-agent` |
| `MONGODB_URI_TEST` | Database connection URI used if the application is running in test environment. The [URI specifications ](https://docs.mongodb.com/manual/reference/connection-string) defined by MongoDB are accepted. For example: `mongodb://user:pass@host:port/database?options` | `mongodb://127.0.0.1:27017`<br/>`/ocariot-ds-agent-test` |
| `REDIS_URI` | Redis database connection URI. Using for sync jobs. | `redis://127.0.0.1:6379` |
| `RABBITMQ_URI` | URI containing the parameters for connection to the message channel RabbitMQ. The [URI specifications ](https://www.rabbitmq.com/uri-spec.html) defined by RabbitMQ are accepted. For example: `amqp://user:pass@host:port` | `amqp://guest:guest`<br/>`@127.0.0.1:5672` |
| `RABBITMQ_CA_PATH` | RabbitMQ CA file location. Must always be provided when using `amqps` protocol. | `.certs/rabbitmqca.crt` |
| `FITBIT_CLIENT_ID` | Client Id for Fitbit Application resposible to manage user data. | `CIENT_ID_HERE` |
Expand Down Expand Up @@ -117,6 +119,7 @@ docker run --rm \
-e SSL_CERT_PATH=.certs/server.crt \
-e RABBITMQ_URI="amqp://guest:[email protected]:5672" \
-e MONGODB_URI="mongodb://192.168.0.2:27017/ocariot-ds-agent" \
-e REDIS_URI="redis://127.0.0.1:6379" \
-e FITBIT_CLIENT_ID="YOUR_FITBIT_CLIENT_ID" \
-e FITBIT_CLIENT_SECRET="YOUR_FITBIT_CLIENT_SECRET" \
-e FITBIT_CLIENT_SUBSCRIBER="YOUR_FITBIT_CLIENT_SUBSCRIBER" \
Expand All @@ -130,6 +133,7 @@ docker run --rm \
--net=host \
-e RABBITMQ_URI="amqp://guest:guest@localhost:5672" \
-e MONGODB_URI="mongodb://localhost:27017/ocariot-ds-agent" \
-e REDIS_URI="redis://127.0.0.1:6379" \
-e FITBIT_CLIENT_ID="YOUR_FITBIT_CLIENT_ID" \
-e FITBIT_CLIENT_SECRET="YOUR_FITBIT_CLIENT_SECRET" \
-e FITBIT_CLIENT_SUBSCRIBER="YOUR_FITBIT_CLIENT_SUBSCRIBER" \
Expand Down
Loading

0 comments on commit 6a5acda

Please sign in to comment.