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

Commit04a949d

Browse files
authored
Update readMe.md
1 parent62584cf commit04a949d

File tree

1 file changed

+207
-0
lines changed

1 file changed

+207
-0
lines changed

‎readMe.md

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,208 @@
11
#Build gRPC Server API & Client with Golang and MongoDB
2+
3+
##1. API with Golang + MongoDB + Redis + Gin Gonic: Project Setup
4+
5+
In this article, you'll learn how to set up a Golang application with MongoDB-Go-driver, Gin Gonic, and Go Redis. Later, we'll access both the Redis and MongoDB databases directly in VS Code using a MySQL VS Code extension.
6+
7+
![API with Golang + MongoDB + Redis + Gin Gonic: Project Setup](https://codevoweb.com/wp-content/uploads/2022/05/API-with-Golang-MongoDB-Redis-and-Gin-Gonic-Project-Setup.webp)
8+
9+
###Topics Covered
10+
11+
- Setup Golang with MongoDB and Redis
12+
- Creating MongoDB and Redis Database with Docker-compose
13+
- Setup Environment Variables
14+
- How to Connect Golang App to Redis and MongoDB
15+
- Test the Golang API
16+
- How to Connect to MongoDB and Redis Servers in VS Code
17+
18+
Read the entire article here:[https://codevoweb.com/api-golang-mongodb-gin-gonic-project-setup](https://codevoweb.com/api-golang-mongodb-gin-gonic-project-setup)
19+
20+
21+
##2. Golang & MongoDB: JWT Authentication and Authorization
22+
23+
In this article, you'll learn how to implement RS256 JWT (JSON Web Token) Authentication and Authorization with Golang, Gin Gonic, MongoDB-Go-driver, and Docker-compose.
24+
25+
![Golang & MongoDB: JWT Authentication and Authorization](https://codevoweb.com/wp-content/uploads/2022/05/Golang-and-MongoDB-JWT-Authentication-and-Authorization.webp)
26+
27+
###Topics Covered
28+
29+
- Golang & MongoDB JWT Authentication Overview
30+
- JWT Authentication Example with Golang and MongoDB
31+
- How to Generate Public and Private Keys
32+
- Update Environment Variables with Viper
33+
- Creating the User models with structs
34+
- Creating an Auth and User Interfaces
35+
- Authentication Interface
36+
- User Interface
37+
- Create utility functions to hash and verify password
38+
- Create services that interact with the database
39+
- Auth interface implementation
40+
- User interface implementation
41+
- Create a utility function to sign and verify JWT tokens
42+
- Create Json Web Token
43+
- Verify JSON Web Token
44+
- Create the authentication controllers
45+
- Signup user controller
46+
- Login user controller
47+
- Refresh access token controller
48+
- Logout user controller
49+
- Authentication Middleware Guard
50+
- Create the user controllers
51+
- Create API Routes with Gin
52+
- Auth Routes
53+
- User Routes
54+
- Add the Routes to the Gin Middleware Pipeline
55+
56+
Read the entire article here:[https://codevoweb.com/golang-mongodb-jwt-authentication-authorization](https://codevoweb.com/golang-mongodb-jwt-authentication-authorization)
57+
58+
##3. API with Golang + MongoDB: Send HTML Emails with Gomail
59+
60+
In this article, you'll learn how to send HTML emails with Golang, Gomail, MongoDB-Go-Driver, Redis, and Docker-compose. Also, you'll learn how to generate HTML templates with the standard Golang html/template package.
61+
62+
![API with Golang + MongoDB: Send HTML Emails with Gomail](https://codevoweb.com/wp-content/uploads/2022/05/API-with-Golang-MongoDB-Send-HTML-Emails-with-Gomail.webp)
63+
64+
###Topics Covered
65+
66+
- Send Emails with Golang, MongoDB, and Gomail Overview
67+
- Creating the HTML Email Templates with Golang
68+
- Create an SMTP Provider Account
69+
- Load and Validate Environment Variables Viper
70+
- Create a Utility Function to Send the Emails
71+
- Update the SignUp Controller
72+
73+
Read the entire article here:[https://codevoweb.com/api-golang-mongodb-send-html-emails-gomail](https://codevoweb.com/api-golang-mongodb-send-html-emails-gomail)
74+
75+
76+
##4. API with Golang, Gin Gonic & MongoDB: Forget/Reset Password
77+
78+
In this article, you'll learn how to implement forget/reset password functionality with Golang, Gin Gonic, Gomail, MongoDB-Go-driver, Redis, and Docker-compose.
79+
80+
![API with Golang, Gin Gonic & MongoDB: Forget/Reset Password](https://codevoweb.com/wp-content/uploads/2022/05/API-with-Golang-Gin-Gonic-MongoDB-Forget-Reset-Password.webp)
81+
82+
###Topics Covered
83+
84+
- Forget/Reset Password with Golang, Gin, and MongoDB
85+
- Create the MongoDB Model Structs
86+
- Create the HTML Email Templates with Golang
87+
- Define a Utility Function to Parse the HTML Templates
88+
- Create a Function to Send the HTML Emails
89+
- Add the Forgot Password Controller
90+
- Add the Reset Password Controller
91+
- Register the Gin API Routes
92+
93+
Read the entire article here:[https://codevoweb.com/api-golang-gin-gonic-mongodb-forget-reset-password](https://codevoweb.com/api-golang-gin-gonic-mongodb-forget-reset-password)
94+
95+
96+
##5. Build Golang gRPC Server and Client: SignUp User & Verify Email
97+
98+
In this article, you'll learn how to create a gRPC server to register a user and verify their email address using Golang, MongoDB-Go-driver, Gomail, and Docker-compose.
99+
100+
![Build Golang gRPC Server and Client: SignUp User & Verify Email](https://codevoweb.com/wp-content/uploads/2022/05/Build-Golang-gRPC-Server-and-Client-SignUp-User-Verify-Email.webp)
101+
102+
###Topics Covered
103+
104+
- gRPC Project setup in Golang
105+
- Create the gRPC Request and Response Messages
106+
- Define the gRPC User messages
107+
- Define the gRPC Request and Response Message to SignUp User
108+
- Create the gRPC Service Methods
109+
- Generate the gRPC client and server interfaces
110+
- Start the gRPC Server
111+
- Test the gRPC API Server with Golang Evans
112+
- Create the gRPC API Controllers
113+
- Register User gRPC Controller
114+
- Verify User gRPC Controller
115+
- Create the gRPC Client to Register a User
116+
117+
Read the entire article here:[https://codevoweb.com/golang-grpc-server-and-client-signup-user-verify-email](https://codevoweb.com/golang-grpc-server-and-client-signup-user-verify-email)
118+
119+
##6. Build Golang gRPC Server and Client: Access & Refresh Tokens
120+
121+
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.
122+
123+
![Build Golang gRPC Server and Client: Access & Refresh Tokens](https://codevoweb.com/wp-content/uploads/2022/05/Build-Golang-gRPC-Server-and-Client-Access-Refresh-Tokens.webp)
124+
125+
###Topics Covered
126+
127+
- Create the gRPC Request and Response Messages
128+
- Create the gRPC User messages
129+
- Define the gRPC Request and Response Message to Login User
130+
- Update the Authentication gRPC Service
131+
- Create a gRPC User Service
132+
- Create the gRPC Controllers
133+
- Create the gRPC Servers
134+
- Register the gRPC Servers
135+
- Create the gRPC Clients in Golang
136+
- Connect the gRPC Client to the gRPC Server
137+
138+
Read the entire article here:[https://codevoweb.com/golang-grpc-server-and-client-access-refresh-tokens](https://codevoweb.com/golang-grpc-server-and-client-access-refresh-tokens)
139+
140+
##7. Build CRUD RESTful API Server with Golang, Gin, and MongoDB
141+
142+
In this article, you'll learn how to build a CRUD RESTful API server with Golang, Gin Gonic, MongoDB-Go-driver, Docker, and Docker-compose.
143+
144+
![Build CRUD RESTful API Server with Golang, Gin, and MongoDB](https://codevoweb.com/wp-content/uploads/2022/05/Build-CRUD-RESTful-API-Server-with-Golang-Gin-and-MongoDB.webp)
145+
146+
###Topics Covered
147+
148+
- Golang, Gin Gonic, MongoDB CRUD RESTful API Overview
149+
- Create the Models with Structs
150+
- Create the Service Interface
151+
- Create Methods to Implement the Interface
152+
- Initialize the Service Struct
153+
- Define a Service to Create a Post
154+
- Define a Service to Update Post
155+
- Define a Service to Delete Post
156+
- Define a Service to Get Single Post
157+
- Define a Service to Get All Posts
158+
- Create Controllers to Perform the CRUD Operations
159+
- Initialize the Controller Struct
160+
- Define a Controller to Create a Post
161+
- Define a Controller to Update a Post
162+
- Define a Controller to Delete a Post
163+
- Define a Controller to Get a Single Post
164+
- Define a Controller to Get All Posts
165+
- Create the Routes for the Controllers
166+
- Initialize the Constructors and Start the Gin Server
167+
168+
Read the entire article here:[https://codevoweb.com/crud-restful-api-server-with-golang-and-mongodb](https://codevoweb.com/crud-restful-api-server-with-golang-and-mongodb)
169+
170+
171+
##8. Build CRUD gRPC Server API & Client with Golang and MongoDB
172+
173+
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.
174+
175+
![Build CRUD gRPC Server API & Client with Golang and MongoDB](https://codevoweb.com/wp-content/uploads/2022/06/Build-CRUD-gRPC-Server-API-Client-with-Golang-and-MongoDB.webp)
176+
177+
###Topics Covered
178+
179+
- Define the Models with Structs
180+
- Create the ProtoBuf Messages
181+
- Define the gRPC Service and RPC Methods
182+
- Define a Custom Service Interface
183+
- Create Methods to Implement the Service Interface
184+
- Create a Constructor to Implement the Service Interface
185+
- Create a new Post
186+
- Update a Post
187+
- Find a Post
188+
- Retrieve All Posts
189+
- Delete a Post
190+
- Define the gRPC Controllers
191+
- Register the gRPC Services and Start the gRPC Server
192+
- Test the gRPC API Server with Evans CLI
193+
- Create the gRPC API Handlers in Golang
194+
- CreatePost gRPC Handler
195+
- UpdatePost gRPC Service Handler
196+
- GetPost gRPC Service Handler
197+
- DeletePost gRPC Service Handler
198+
- GetPosts gRPC Service Handler
199+
- Testing the gRPC Services with Evans Cli
200+
- Create the gRPC Clients
201+
- gRPC Client to Create a Post
202+
- gRPC Client to Update a Post
203+
- gRPC Client to Get a Single Post
204+
- gRPC Client to Get All Posts
205+
- gRPC Client to Delete a Post
206+
- Register the gRPC Services
207+
208+
Read the entire article here:[https://codevoweb.com/crud-grpc-server-api-client-with-golang-and-mongodb](https://codevoweb.com/crud-grpc-server-api-client-with-golang-and-mongodb)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp