This article will guide you on how you can set up a Golang project with the GORM library and PostgreSQL to build CRUD RESTful API to perform the basic Create/Get/Update/Delete operations
- What is an ORM?
- Setup the Golang Project
- Initialize the Golang Project
- Create a PostgreSQL Docker Container
- Load and Validate the Environment Variables
- Create a Utility Function to Connect to PostgreSQL
- Data Modeling and Migration with GORM
- Creating the Database Model with GORM
- Install the UUID OSSP Module for PostgreSQL
- Migrating the Schema with GORM
- Create the Golang Server with Gin Gonic
- Testing the Golang API
Read the entire article here: https://codevoweb.com/setup-golang-gorm-restful-api-project-with-postgres
Articles in this series:
How to Setup Golang GORM RESTful API Project with Postgres
API with Golang + GORM + PostgreSQL: Access & Refresh Tokens
Golang and GORM - User Registration and Email Verification