For learning purpose
- REST API with Gin Framework
- MariaDB/MySQL intergration with GORM
Update .env file to match your environment, then create new DB
CREATE DATABASE `gin_test` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
$ go get
$ go run main.go
$ go build main.go
$ ./main
Install gin live-reload and run
$ go get github.com/codegangsta/gin
$ bash scripts/run-dev.sh
https://documenter.getpostman.com/view/620074/SVYtLx7M?version=latest
- https://github.com/dgrijalva/jwt-go (for JWT)
- https://github.com/joho/godotenv (for env management)
- https://github.com/go-sql-driver/mysql (MySQL driver)
- https://github.com/codegangsta/gin (for live reload)