Skip to content

In this article, you'll learn how to build a CRUD API in Golang using the Fiber web framework and GORM. The REST API will run on a Fiber HTTP server and use GORM to persist data in a PostgreSQL database.

wpcodevo/golang-fiber

Repository files navigation

Create CRUD API in Golang using Fiber and GORM

In this article, you'll learn how to build a CRUD API in Golang using the Fiber web framework and GORM. The REST API will run on a Fiber HTTP server and use GORM to persist data in a PostgreSQL database.

Create CRUD API in Golang using Fiber and GORM

Topics Covered

  • Run the Golang Fiber Project Locally
  • Run the Fiber API with React.js App
  • Setup the Golang Project
  • Setup Postgres and pgAdmin with Docker
  • Design the Database Model with GORM
  • Load Environment Variables and Connect to Postgres
    • Load the Environment Variables
    • Connect to the Postgres Server
    • Database Migration with GORM
  • Implement the CRUD Functionalities
    • Add New Record
    • Fetch All Records
    • Edit a Record
    • Retrieve a Single Record
    • Delete a Record
  • Create the API Routes and Add CORS

Read the entire article here: https://codevoweb.com/create-crud-api-in-golang-using-fiber-and-gorm/

About

In this article, you'll learn how to build a CRUD API in Golang using the Fiber web framework and GORM. The REST API will run on a Fiber HTTP server and use GORM to persist data in a PostgreSQL database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published