My playground for creating REST API using Golang.
- simple (CRUD) user management
- simple JSON Web Token (JWT) authentication *thanks to appleboy
- add auto migrate using cli
- clone this repo
- install the cli
- go to gcli directory
cd gcli
go install
- go to gcli directory
- run the
gcli
from the root of this project- do migration
gcli db migrate
- make sure there's no error on your migration
- do migration
- run the app
go run main.go
Very open for suggestions. Sharing is caring is learning. Just mail me at awcodify@gmail.com