Skip to main content

Client Initialization

Once you have installed the @genzy/client library, you can now init the API.

Initialization

Standalone

const { GenzyContainer } = require("@genzy/client");

class ExampleService {
async get() {}
}

const container = new GenzyContainer().addRemoteService(
"http://localhost:3000",
ExampleService
);

const { exampleService } = nimble.getAllServices();

Options

The complete list of available options can be found here.