https://github.com/wpcodevo/golang-fiber
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.
https://github.com/wpcodevo/golang-fiber
api crud crud-api crud-application docker fiber fiber-framework golang gorm gorm-orm postgres postgresql rest-api
Last synced: 16 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/wpcodevo/golang-fiber
- Owner: wpcodevo
- Created: 2023-01-28T20:05:34.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-29T12:53:35.000Z (about 2 years ago)
- Last Synced: 2025-03-27T09:11:53.710Z (about 1 month ago)
- Topics: api, crud, crud-api, crud-application, docker, fiber, fiber-framework, golang, gorm, gorm-orm, postgres, postgresql, rest-api
- Language: Go
- Homepage: https://codevoweb.com/create-crud-api-in-golang-using-fiber-and-gorm/
- Size: 25.4 KB
- Stars: 10
- Watchers: 1
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.

## 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 CORSRead the entire article here: [https://codevoweb.com/create-crud-api-in-golang-using-fiber-and-gorm/](https://codevoweb.com/create-crud-api-in-golang-using-fiber-and-gorm/)