In this guide, you will learn how to build a complete CRUD gRPC API server and client with TypeScript in a Node.js environment that runs on an Expressjs framework and uses a Prisma database ORM. We'll create five RPC services on the gRPC server that are going to be evoked by the gRPC client to perform the basic CRUD (Create, Read, Update, and Delete) operations.
- Node.js gRPC Server and Client Overview
- Calling the Create Record RPC Service
- Calling the Update Record RPC Service
- Calling the Get Single Record RPC Service
- Calling the Delete Record RPC Service
- Calling the Get All Records RPC Service
- Setup and Installation
- Create the Protobuf Messages
- Create the gRPC Services
- Model the API Data with Prisma
- Create the RPC Handlers
- Create a New Record RPC Handler
- Update Record RPC Handler
- Retrieve a Single Record RPC Handler
- Delete a Record RPC Handler
- Retrieve all Records RPC Handler
- Create the Node.js gRPC Server
- Create the gRPC Client with Node.js
- Create the Validation Schema with Zod
- Create a Middleware to Validate the Requests
- Set up and Export the gRPC Client
- Set up the Express Server
Read the entire article here: https://codevoweb.com/complete-grpc-crud-api-with-nodejs-and-express
Articles in this Series:
Build a Node.js gRPC Server and Client: Register and Login User
