Skip to content

Latest commit

 

History

History
84 lines (54 loc) · 1.37 KB

README.md

File metadata and controls

84 lines (54 loc) · 1.37 KB

dp3t-ms

An efficient backend architecture for decentralized contact tracing.

  • High performance
  • Microservice-based
  • Modular
  • Compatible with DP-3T

Available microservices

  • Exposed keys microservice
  • Codes microservice

API

See API documentation

Prerequisites

Configuration

Both microservices need a Redis database to work. You can provide the REDIS_URL environment variable through a .env file.

To run the "codes" microservice, you have to provide some code types. To start, you can just create the config/codes.yaml by copying the existing config/codes.yaml.sample file.

Development

Installation

yarn

Run

# To run the "exposed keys" microservice (will listen en port 5001)
yarn dev:exposed-keys

# To run the "codes" microservice (will listen en port 5002)
yarn dev:codes

Test

yarn test

Production

Installation

At the moment you have to clone the repository.

yarn --prod

Run

# To run the "exposed keys" microservice
yarn start:exposed-keys

# To run the "codes" microservice
yarn start:codes

Docker

docker-compose build
docker-compose run

License

MIT