npm.io
1.26.8 • Published 11 months agoCLI

@velocitycareerlabs/data-loader

Licence
Apache-2.0
Version
1.26.8
Deps
10
Size
108 kB
Vulns
0
Weekly
0
Stars
3

Velocity Network Monorepo

Github CI codecov Vulnerabilities Dependency License Check

Contains the Velocity Career Labs

  • Credential Agent,
  • "Oracle" server containing the combined
    • Blockchain oracle
    • registrar
    • push notification gateway
    • phone/email verifing issuer vendor
    • (Coming soon) network event sink.
  • Mock Vendor Gateway use by VCL in its deployment

Running Locally

yarn
yarn start

Running with Docker

docker-compose up

Tests Requirements

Containers

Containers are required to be running for tests to work: Use the docker-compose-unit-testing.yml for example:

  • docker compose -f ./docker-compose-unit-testing.yml up
Migrations
  • credentialagent migrations need to be run against test credentialagent database in order to tests to pass locally. For a default configuration that would be: MONGO_URI=mongodb://localhost:27017/test-credential-agent yarn migrate:up from the servers/credentialagent directory.

See Data Migrations section below for more information on migrations

Environment Variables

The oracle's .env file should have AWS_ENDPOINT set to the host exposed by localstack, which, by default, should be http://localhost:4566.

Data Migrations

  • For running oracle migrations, see servers/oracle/README.md
  • For running credential agent migrations, see servers/credentialagent/README.md