deno.land / x / alosaur@v1.1.1 / examples / microservice / app / app.ts
12345678910111213141516171819import { App } from "alosaur/mod.ts";import { CoreArea } from "./areas/core.area.ts";import { MsTcpClient } from "alosaur/microservice/mod.ts";
const app = new App({ areas: [CoreArea], providers: [ { token: "TCP_CLIENT", useValue: new MsTcpClient({ hostname: "localhost", port: 4500 }), // TODO need implement useFactory in di // useFactory: () => new MsTcpClient({ hostname: "localhost", port: 4500 }), }, ], logging: false,});
app.listen();
Version Info