Halo ini adalah starter kit Auhtentication sederharana menggunakan bahasa pemograman Golang. Basic dalam starter ini meliputi :
- Register
- Login
- Profile.
- Clone Repository ini dengan cara
git clone https://github.com/andes2912/Go-Auth-Starter
- Masuk ke directory
- Lalu jalankan
go run main.go
- Register http://127.0.0.1:3000/register
{
"nama": "Andri Desmana",
"phone": "12345678",
"email": "andri@mail.com",
"password": "testing"
}
{
"email": "andri@mail.com",
"password": "testing"
}
- Profile http://127.0.0.1:3000/user
go get github.com/joho/godotenv
go get -u github.com/golang-jwt/jwt/v5
go get -u github.com/gin-gonic/gin
go get -u gorm.io/gorm
go get -u gorm.io/driver/mysql
go get -u golang.org/x/crypto/bcrypt
go get github.com/githubnemo/CompileDaemon