/gRPC_example

This example shows how the client and server works with HTTP/2 and protocol buffers. In general, combining both two features as the gRPC.

Primary LanguageJavaScript

gRPC To-Do List Example

This repository provides a simple example of using gRPC to maintain a to-do list. The example includes a server that manages the to-do list and a client that interacts with the server.

Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js (v14.x or later)
  • npm (v6.x or later)

Getting Started

  1. Clone the repository:

    git clone https://github.com/Aryog/gRPC_example.git
    cd gRPC_example
  2. Install the dependencies:

    npm install

Running the Server

To start the gRPC server, run the following command:

node server.js

Running the client

Leave server running and now test from client To run the client, make requests in stream or http, run the following command:

node client.js Groceries