Go Restfull API Laithan

Go Build Status

Modul

Installation

Use Golang version 1.17

git clone https://github.com/kurnia123/go-restfull-api.git
cd go-restfull-api
go get .

Create File .env in root project

echo > .env

Add configuration in .env file

HOST=localhost
PORT=8080

DB_USER=[your username]
DB_HOST=localhost
DB_PASSWORD=[your password]
DB_DATABASE=belajar_restfull_golang
DB_PORT=3306

ACCESS_TOKEN_KEY=1caa40d6db685726f28387396335ff4ab5b66f52ae508478a98906dad1eb2996cbb82ee1adfa47368ab36bc5dc64b588380cc1880ff9adaa1bd30a8d470abcdc
REFRESH_TOKEN_KEY=31b8365e3ba61ea4350b4e2b39354c608c5394b85a0fae3e5210e9296d1f992da141b51fa414650bfe617325b5327d481b1b53fc4dc748c20ee58a28fb0576a9
ACCESS_TOKEN_AGE=1800

Run Server

go run main.go

License

MIT

Free Software, Hell Yeah!