archus common toolset
// npm
npm i archus-atlas
// yarn
yarn add archus-atlas
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
import { ZKUtil } from "../core/ZKUtil";
await ZKUtil.init();
// If you need to register the service
ZKUtil.register();