Skip to content

vinbyte/golang-simple-api

Repository files navigation

Simple Golang REST API

Install

  1. Clone
  2. Copy and rename .env.sample to .env. Set the database and port.
  3. Import the tables.sql to database to create and insert data to table.
  4. Run go run main.go

Routes

Endpoint Method Param Desc
/student GET Mengambil daftar siswa
/student POST name, grade Menambahkan siswa

Test

To run unit test along with coverage, run go test -v -cover ./...

About

Simple API in golang with Gin Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published