Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 29 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 (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-29T12:53:35.000Z (almost 2 years ago)
- Last Synced: 2024-05-15T15:32:42.495Z (8 months 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: 7
- Watchers: 1
- Forks: 8
- 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.
![Create CRUD API in Golang using Fiber and GORM](https://codevoweb.com/wp-content/uploads/2023/01/Create-CRUD-API-in-Golang-using-Fiber-and-GORM.webp)
## 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/)