|
1 |
| -# CRUD RESTful API with Golang + MongoDB + Redis + Gin Gonic |
| 1 | +# Build CRUD RESTful API Server with Golang, Gin, and MongoDB |
| 2 | + |
| 3 | +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. |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | +## Topics Covered |
| 8 | + |
| 9 | +- Golang, Gin Gonic, MongoDB CRUD RESTful API Overview |
| 10 | +- Create the Models with Structs |
| 11 | +- Create the Service Interface |
| 12 | +- Create Methods to Implement the Interface |
| 13 | + - Initialize the Service Struct |
| 14 | + - Define a Service to Create a Post |
| 15 | + - Define a Service to Update Post |
| 16 | + - Define a Service to Delete Post |
| 17 | + - Define a Service to Get Single Post |
| 18 | + - Define a Service to Get All Posts |
| 19 | +- Create Controllers to Perform the CRUD Operations |
| 20 | + - Initialize the Controller Struct |
| 21 | + - Define a Controller to Create a Post |
| 22 | + - Define a Controller to Update a Post |
| 23 | + - Define a Controller to Delete a Post |
| 24 | + - Define a Controller to Get a Single Post |
| 25 | + - Define a Controller to Get All Posts |
| 26 | +- Create the Routes for the Controllers |
| 27 | +- Initialize the Constructors and Start the Gin Server |
| 28 | + |
| 29 | +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) |
| 30 | + |
| 31 | +Articles in this series: |
2 | 32 |
|
3 | 33 | ### 1. API with Golang + MongoDB + Redis + Gin Gonic: Project Setup
|
4 | 34 |
|
|
0 commit comments