@vizlib/synchronization-service
v0.7.8
Published
<p align="center"> <h3>How to start</h3> <ol> <li>Make sure you're using node 18</li> <li>Create .env file in root folder or download an example from the Keeper. Required environment variables are: {TENANTNAME}_SYNC_SERVICE_AUTHORI
Readme


You can find the WebSocket test file here. If you want that file to work out of the box, add the following in your .env file:
TEST-TENANT_SYNC_SERVICE_AUTHORIZATION_TOKEN=TEST-TOKEN
Project setup
$ npm installCompile and run the project
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prodRunning the project will create a cache for the configuration at ./data/sync-service-config.json.
To clear the config cache between runs, delete the file manually or run npm run remove:keyv-file.
The removal script is executed automatically when starting npm run start:dev, but not on hot reloads.
Run tests
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov