https://github.com/marella/node-grpc-interop-server
A gRPC server for Node.js to run interoperability tests.
https://github.com/marella/node-grpc-interop-server
Last synced: about 1 year ago
JSON representation
A gRPC server for Node.js to run interoperability tests.
- Host: GitHub
- URL: https://github.com/marella/node-grpc-interop-server
- Owner: marella
- License: apache-2.0
- Created: 2023-04-10T14:42:24.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-14T18:45:51.000Z (about 3 years ago)
- Last Synced: 2025-03-07T19:18:35.164Z (over 1 year ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [grpc-interop-server](https://github.com/marella/node-grpc-interop-server)
An implementation of gRPC [interop server][interop server] for Node.js
## Installation
```sh
npm install grpc-interop-server --save-dev
```
## Usage
Run from the command line:
```sh
npx grpc-interop-server --port 8080
```
or use in a CommonJS module:
```js
const startServer = require('grpc-interop-server');
startServer({ port: 8080 }).then((server) => {
//
});
```
or use in an ECMAScript module:
```js
import startServer from 'grpc-interop-server';
const server = await startServer({ port: 8080 });
```
## License
Code is taken from [grpc/grpc-node][source] repo which is available under the [Apache License Version 2.0][license]
[interop server]: https://github.com/grpc/grpc/blob/master/doc/interop-test-descriptions.md#server
[source]: https://github.com/grpc/grpc-node/tree/master/test/interop
[license]: https://github.com/marella/node-grpc-interop-server/blob/main/LICENSE