Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

In this article, you'll learn how to implement JWT access and refresh tokens with gRPC using Golang, MongoDB-Go-driver, Gomail, Docker, and Docker-compose.

NotificationsYou must be signed in to change notification settings

wpcodevo/golang-mongodb-api

 
 

Repository files navigation

In this article, you'll learn how to build a CRUD gRPC API server with Golang, MongoDB-Go-driver, and Docker-compose. You'll also build a gRPC client to interact with the gRPC API.

Build CRUD gRPC Server API & Client with Golang and MongoDB

Topics Covered

  • Define the Models with Structs
  • Create the ProtoBuf Messages
  • Define the gRPC Service and RPC Methods
  • Define a Custom Service Interface
  • Create Methods to Implement the Service Interface
    • Create a Constructor to Implement the Service Interface
    • Create a new Post
    • Update a Post
    • Find a Post
    • Retrieve All Posts
    • Delete a Post
  • Define the gRPC Controllers
  • Register the gRPC Services and Start the gRPC Server
  • Test the gRPC API Server with Evans CLI
  • Create the gRPC API Handlers in Golang
    • CreatePost gRPC Handler
    • UpdatePost gRPC Service Handler
    • GetPost gRPC Service Handler
    • DeletePost gRPC Service Handler
    • GetPosts gRPC Service Handler
  • Testing the gRPC Services with Evans Cli
  • Create the gRPC Clients
    • gRPC Client to Create a Post
    • gRPC Client to Update a Post
    • gRPC Client to Get a Single Post
    • gRPC Client to Get All Posts
    • gRPC Client to Delete a Post
  • Register the gRPC Services

Read the entire article here:https://codevoweb.com/crud-grpc-server-api-client-with-golang-and-mongodb

Articles in this series:

1. API with Golang + MongoDB + Redis + Gin Gonic: Project Setup

API with Golang + MongoDB + Redis + Gin Gonic: Project Setup

2. Golang & MongoDB: JWT Authentication and Authorization

Golang & MongoDB: JWT Authentication and Authorization

3. API with Golang + MongoDB: Send HTML Emails with Gomail

API with Golang + MongoDB: Send HTML Emails with Gomail

4. API with Golang, Gin Gonic & MongoDB: Forget/Reset Password

API with Golang, Gin Gonic & MongoDB: Forget/Reset Password

5. Build Golang gRPC Server and Client: SignUp User & Verify Email

Build Golang gRPC Server and Client: SignUp User & Verify Email

6. Build Golang gRPC Server and Client: Access & Refresh Tokens

Build Golang gRPC Server and Client: Access & Refresh Tokens

7. Build CRUD RESTful API Server with Golang, Gin, and MongoDB

Build CRUD RESTful API Server with Golang, Gin, and MongoDB

8. Build CRUD gRPC Server API & Client with Golang and MongoDB

Build CRUD gRPC Server API & Client with Golang and MongoDB

About

In this article, you'll learn how to implement JWT access and refresh tokens with gRPC using Golang, MongoDB-Go-driver, Gomail, Docker, and Docker-compose.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp