Miss any of our Open RFC calls?Watch the recordings here! »

@architect-io/node-launcher

0.1.14 • Public • Published

architect-node-launcher

Node.js launcher for the architect CLI

Build Version License oclif

Injection Schema

Example .proto file

syntax = "proto3";
 
service MyService {
  rpc ServiceMethod (MyRequest) returns (MyResponse) {}
}
 
message MyRequest {
  // ...
}
``
message MyResponse {
  // ...
}

Example architect.json

{
  "name": "my-service",
  "main": "index.js",
  "proto": "main.proto",
  "dependencies": {
    "dependency-name": "1.2.3"
  }
}

Main file schema

// Instance of service will be constructed with location-aware GRPC stubs
class MyService {
  constructor(dependency_1) {
    this.dependency_1 = dependency_1;
  }
 
  // GRPC methods matching those cited in the corresponding Protobuf service...
  ServiceMethod(call, callback) {
    // ...
  }
}
 
MyService.dependencies = ['dependency-name'];
 
module.exports = MyService;

Install

npm i @architect-io/node-launcher

DownloadsWeekly Downloads

3

Version

0.1.14

License

GPL-3.0

Unpacked Size

19.3 kB

Total Files

15

Last publish

Collaborators

  • avatar
  • avatar