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 RESTful API server with Golang, Gin Gonic, MongoDB-Go-driver, Docker, and Docker-compose.

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

Topics Covered

  • Golang, Gin Gonic, MongoDB CRUD RESTful API Overview
  • Create the Models with Structs
  • Create the Service Interface
  • Create Methods to Implement the Interface
    • Initialize the Service Struct
    • Define a Service to Create a Post
    • Define a Service to Update Post
    • Define a Service to Delete Post
    • Define a Service to Get Single Post
    • Define a Service to Get All Posts
  • Create Controllers to Perform the CRUD Operations
    • Initialize the Controller Struct
    • Define a Controller to Create a Post
    • Define a Controller to Update a Post
    • Define a Controller to Delete a Post
    • Define a Controller to Get a Single Post
    • Define a Controller to Get All Posts
  • Create the Routes for the Controllers
  • Initialize the Constructors and Start the Gin Server

Read the entire article here:https://codevoweb.com/crud-restful-api-server-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