mather.js
v0.0.13
Published
Simple Node gRPC microservice that does math.
Downloads
6
Readme
Mather Service (in Node)
Simple Node gRPC microservice that does math.
Features
- Add numbers
- Subtract numbers
Usage
From Prebuilt Binaries
Prebuilt binaries are available on the releases page.
From npm
# Install
npm install mather.js # Please use `nvm` to prevent permission errors
# Run
mather.js-server startFrom Source
Prerequisites
# Install dependencies
npm install
# Clean (optional)
npm run clean
# Build
npm run buildStart With Toolchain
# Run
npm startStart As Standalone Binary
# Build binary (with `pkg`)
npm run pkg-binary-build-linux-amd64
# or
npm run pkg-binary-build-darwin-amd64
# Install binary (from `pkg`)
sudo -E env "PATH=$PATH" npm run pkg-binary-install-linux-amd64
# or
sudo -E env "PATH=$PATH" npm run pkg-binary-install-darwin-amd64
# Run
mather.js-server startUnit Tests
# Start unit tests
npm testIntegration Tests
# Start integration tests
npm run integration-testsIntegration Tests (For Standalone Binary)
# Start integration tests (for standalone binary)
sudo -E env "PATH=$PATH" npm run pkg-binary-integration-tests-linux-amd64
# or
sudo -E env "PATH=$PATH" npm run pkg-binary-integration-tests-darwin-amd64Development
# Start unit tests, start server and restart both if source changed
npm run devLicense
Mather Service (in Node) (c) 2019 Felix Pojtinger
SPDX-License-Identifier: AGPL-3.0
