Skip to content

wpcodevo/grpc-node-prisma

 
 

Repository files navigation

Build a Complete CRUD gRPC API with Node.js and Express

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.

Build a Complete CRUD gRPC API with Node.js and Express

Topics Covered

  • 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:

1. Build a Node.js gRPC Server and Client: Register and Login User

Build a Node.js gRPC Server and Client: Register and Login User

2. Build Node.js gRPC API Server and Client: Send HTML Emails

Build Node.js gRPC API Server and Client: Send HTML Emails

3. Build a Complete CRUD gRPC API with Node.js and Express

Build a Complete CRUD gRPC API with Node.js and Express

About

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 De…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors