Skip to content

Commit

Permalink
Merge pull request #45 from iotaledger/42-channel-info-ep
Browse files Browse the repository at this point in the history
Closes #42, #20, 19 Channel Info Endpoint
  • Loading branch information
Dominic Zettl committed Feb 15, 2021
2 parents e7a2cd8 + d7f9ca8 commit c6065f3
Show file tree
Hide file tree
Showing 20 changed files with 842 additions and 86 deletions.
28 changes: 28 additions & 0 deletions README.md
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`



5 changes: 5 additions & 0 deletions api/.env-example
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
6 changes: 5 additions & 1 deletion api/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@ module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier']
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off'
}
};
14 changes: 14 additions & 0 deletions api/docker-compose.yml
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:
183 changes: 177 additions & 6 deletions api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c6065f3

Please sign in to comment.