Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 CORS

Read 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/)