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"
}
- Login http://127.0.0.1:3000/#
{
"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