Skip to content

michaelact/firstApi

Repository files navigation

First API: dengan Golang

Cara menjalankan:

  1. Install Golang
  2. Pastikan Golang 1.18
  3. go get ./...
  4. Siapkan database MySQL (saya menggunakan versi 8)
  5. Eksekusi file-file *.sql dalam folder database/migrations/*.sql ke database MySQL
  6. Siapkan environment variable dibawah ini:
    • DATABASE_PORT
    • DATABASE_PASSWORD
    • DATABASE_HOST
    • DATABASE_USER
    • DATABASE_NAME
    • SERVER_PORT
    • SERVER_HOST
    • API_KEY
    • LOG_LEVEL List
  7. go run .

Referensi:

About

RESTful API | Reference: DevCode Challenge 2nd

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages