8000 GitHub - wpcodevo/golang-mongodb-api at golang-mongodb-crud-api
[go: up one dir, main page]

Skip to content

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.

Notifications You must be signed in to change notification settings

wpcodevo/golang-mongodb-api

 
 

Repository files navigation

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

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

2A37
0