Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-tikhonov committed Jan 14, 2019
1 parent 77bd3d8 commit 7b9cd1a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,20 @@ npm run lint # linters
npm run test:integration # integration tests for `test_package` localed in `test/test_package`. Results are stored in `tests/integration/baseline.json`
TEST_PACKAGE=react@16 npm run test:integration # runs integration tests for a specific package
```

## Architecture
- `src/producer.ts` periodically queries new packages and sends them to RabbitMQ
- `src/consumer.ts` is processing these messages by running a docker container that runs `src/checker.ts`

## MongoDB
MongoDB is used to store reports for processed packages. Each report has one of the following statuses:
- unverified - package has suspicious activity and needs to be checked manually
- auto_verified - package has no suspicious activity
- verified / unsound / malicious could be assigned to a report after a manual check

Use the following connection string to connect to local MongoDB instance: mongodb://root:123456@mongodb

## RabbitMQ
RabbitMQ is used to store packages which need to be checked.

Use the following connection string to connect to local RabbitMQ instance: amqp://guest:123456@rabbitmq. RabbitMQ management UI is available at http://localhost:15672, credentials are guest / 123456.

0 comments on commit 7b9cd1a

Please sign in to comment.