This project is a CRUD Books where you can create, get all books, get a single book, update a book and delete a book. This project is for learning purposes.
- Go
- Gin
- Gorm
- Viper
- PostgreSQL
- Go
- PostgreSQL (and a Database)
- Clone this repo
git clone https://github.com/sumirart/go-gin-gorm-books.git
- Cd into the folder
cd go-gin-gorm-books
go install
- Rename the
.env.example
to.env
inpkg/common/envs
- Change the fill in
.env
which is port, DB user, DB password, DB server address and DB name
make server