-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from iotaledger/42-channel-info-ep
- Loading branch information
Showing
20 changed files
with
842 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,29 @@ | ||
# e-commerce-audit-log | ||
|
||
|
||
## MongoDB | ||
|
||
### Setup MongoDB | ||
|
||
Start the docker container using: `docker-compose up -d` | ||
|
||
Verify it is running: `docker ps` | ||
|
||
Expected output: | ||
|
||
--- | ||
|
||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | ||
|
||
1a3553ec3f25 mongo:latest "docker-entrypoint.s…" 5 minutes ago Up 4 minutes 0.0.0.0:27017->27017/tcp api_mongodb_container_1 | ||
|
||
--- | ||
|
||
### Connect to MongoDB | ||
|
||
Use client like for instance: MongoDB Compass | ||
|
||
Coonection String: `mongodb://root:rootpassword@0.0.0.0:27017` | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
PORT=3000 | ||
IOTA_NODE_URL=https://nodes.thetangle.org:443 | ||
API_VERSION=v1 | ||
DATABASE_URL=mongodb://<USER>:<PASSWORD>@0.0.0.0:27017 | ||
DATABASE_NAME=e-commerce-audit-log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: '3.7' | ||
services: | ||
mongodb_container: | ||
image: mongo:latest | ||
environment: | ||
MONGO_INITDB_ROOT_USERNAME: root | ||
MONGO_INITDB_ROOT_PASSWORD: rootpassword | ||
ports: | ||
- 27017:27017 | ||
volumes: | ||
- mongodb_data_container:/data/db | ||
|
||
volumes: | ||
mongodb_data_container: |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.