Simple Node gRPC microservice that does math.
- Add numbers
- Subtract numbers
Prebuilt binaries are available on the releases page.
# Install
npm install mather.js # Please use `nvm` to prevent permission errors
# Run
mather.js-server start
# Install dependencies
npm install
# Clean (optional)
npm run clean
# Build
npm run build
# Run
npm start
# 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 start
# Start unit tests
npm test
# Start integration tests
npm run integration-tests
# 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-amd64
# Start unit tests, start server and restart both if source changed
npm run dev
Mather Service (in Node) (c) 2019 Felix Pojtinger
SPDX-License-Identifier: AGPL-3.0