- Implementing CRUD in Golang Rest API
- Create
- Get By ID
- Get All
- Update
- Delete
- Testing CRUD Operations
- 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 the following steps:
- git clone
https://github.com/CRUD-Rest-API-Golang/
go install
- Create a database named crud_rest in Postgres
go run database/seeder/seeder.go
Seed the database.go run main.go
Run the app in Dev mode.