mrhitman / netree

simple gRPC client-server on Node.Js and typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simple gRPC client-server

This project used for training purposes and not recommeneded to use in real life

    yarn install                # to install dependencies
    yarn build                  # to generate proto models

Server commands

    cd server
    cp .env.example .env # create config from default boilerplate
    yarn test            # to run tests
    yarn build           # transpile ts to js
    yarn start           # to run server
    yarn dev             # to run server in dev mode (hotreload, ...)

Client commands

    cd client
    cp .env.example .env                    # create config from default boilerplate
    yarn cli -all                           # get all nodes
    yarn cli -view xxxx-xxxxx-xxxx-xxxxx    # view some node
    yarn cli -delete xxxx-xxxxx-xxxx-xxxxx  # delete some node
    yarn cli -add name parent_id            # add node
    yarn cli -update name parent_id         # update node
    yarn cli -subscribe                     # subscribe for updates

About

simple gRPC client-server on Node.Js and typescript


Languages

Language:JavaScript 88.2%Language:TypeScript 10.9%Language:Shell 0.6%Language:Dockerfile 0.3%