npm.io
1.2.5 • Published 4 years ago

archus-atlas

Licence
ISC
Version
1.2.5
Deps
6
Size
85 kB
Vulns
6
Weekly
0

archus-atlas

archus common toolset

QuickStart

// npm
npm i archus-atlas
// yarn
yarn add archus-atlas

.env

You need to create a .env file in the root directory with the following content

ZK_URL=localhost:2181
// If you need to register the service
ZK_REGISTER_PATH="/archus/microservices" //Service Registration Directory
ZK_REGISTER_SERVICE_NAME="test-service" // Service Name

init

import { ZKUtil } from "../core/ZKUtil";
await ZKUtil.init();
// If you need to register the service
ZKUtil.register();

Keywords