jamalkaksouri / CRUD-Rest-API-Golang

Simple CRUD REST API in Golang with Mux & GORM & PostgreSQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple CRUD REST API in Golang with Mux & GORM & PostgreSQL

CRUD in GoLang REST API with Mux & GORM & Postgres DB

Features

  • Implementing CRUD in Golang Rest API
    • Create
    • Get By ID
    • Get All
    • Update
    • Delete
  • Testing CRUD Operations

Development Setup

Tools

  • Go version 1.18.1
  • Postgres for Database
  • gorilla/mux for routing
  • gorm for ORM
  • viper for enviroment configuration
  • faker for fake data generator for Struct

Run Program

Run the following steps:

  1. git clone https://github.com/CRUD-Rest-API-Golang/
  2. go install
  3. Create a database named crud_rest in Postgres
  4. go run database/seeder/seeder.go Seed the database.
  5. go run main.go Run the app in Dev mode.

About

Simple CRUD REST API in Golang with Mux & GORM & PostgreSQL


Languages

Language:Go 100.0%