@architect-io/nodejs-launcher

Launcher for Architect.io supporting node.js

Use @architect-io/node-launcher instead
Last updated 8 months ago by david.thor .
GPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @architect-io/nodejs-launcher 
SYNC missed versions from official npm registry.

architect-javascript-launcher

Javascript launcher for the architect CLI

oclif Version Downloads/week License

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;

Current Tags

  • 0.0.3                                ...           latest (8 months ago)

3 Versions

  • 0.0.3 [deprecated]           ...           8 months ago
  • 0.0.2 [deprecated]           ...           8 months ago
  • 0.0.1 [deprecated]           ...           8 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 9
Dependencies (6)
Dev Dependencies (12)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |