Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.34 KB

readme.md

File metadata and controls

54 lines (36 loc) · 1.34 KB

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