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

https://github.com/arronf2e/gin_gorm_tutorial

gin_gorm_tutorial
https://github.com/arronf2e/gin_gorm_tutorial

Last synced: about 1 year ago
JSON representation

gin_gorm_tutorial

Awesome Lists containing this project

README

          

### package used
- viper: load and validate the environment variables
go get github.com/spf13/viper
- gorm: connect to pgsql
go get -u gorm.io/gorm
go get gorm.io/driver/postgres
- uuid: generates and inspects UUIDs
go get github.com/google/uuid
- gin
go get github.com/gin-gonic/gin
- air: livereload
go get github.com/cosmtrek/air@latest
- jwt
github.com/golang-jwt/jwt
- html2text: cover html to text
go get github.com/k3a/html2text
- gomail: send email
go get gopkg.in/gomail.v2
- randstr: generate random string
go get github.com/thanhpk/randstr

### Start pg docker container

```shell
docker-compose up -d
```

### package install
```shell
go mod tidy
```

### migrate
```shell
go run migrate/migrate.go
```

### start server
```shell
air
```