use existing libs :
-
Chi Router
-
Ozzo Validation, for input request validation
-
Godotenv, for env loader
-
Gorm, for ORM
- Clone Repo
$ git clone https://github.com/riyanda432/belajar-authentication.git
$ cd belajar-authentication
$ go mod tidy
- Install Air for Hot Reloading
- Install soda-cli for migration tools
- Setup .env
- Setup database.yml
- [optional] Run sample migrations
$ soda migrate up
- Running Application
$ air
or
$ go run main.go
Please install to verify unit test before commit
go install github.com/go-courier/husky/cmd/husky@latest
Then install git hooks
husky init
docker-compose up
https://www.postman.com/warped-comet-2088/workspace/my-workspace/example/8065646-126e8f24-fc9d-4e63-b446-aa702bf9639f