Skip to content

abdul15irsyad/gin-gorm-rest-api

Repository files navigation

Gin Gorm REST API

project for learning golang with gin framework and gorm as ORM

Tech Stack

  • Golang go1.22.2
  • Gin Framework
  • Gorm
  • PostgreSQL

Installation

  1. pull repository

    git clone git@github.com:abdul15irsyad/gin-gorm-rest-api.git
    cd gin-gorm-rest-api
  2. install dependencies

    go mod download
  3. configsure environment, copy from .env.example to .env and adjust to your setup like database, port, jwt secret, etc.

    cp .env.example .env
  4. run the project

    go run main.go

    or with air (live reload)

    air
  5. run the seeder for dummy datas

    go run cmd/seed.go

Postman

Run In Postman

About

Belajar framework golang-gin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages