Skip to content

simple gRPC client-server on Node.Js and typescript

Notifications You must be signed in to change notification settings

mrhitman/netree

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published