Skip to content

Building simple blog app with Go, Gin, Gorm, and PostgreSQL

Notifications You must be signed in to change notification settings

wisnuuakbr/blog-rest-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Blog RestAPI using Golang

Building simple blog app with go, gin, gorm, and postgresql

NB: This project currently still on progress

Requirements

Simple RestAPI is currently extended with the following requirements.
Instructions on how to use them in your own application are linked below.

Requirement Version
Go 1.21.5
Postgres 14.0

Installation

Make sure the requirements above already install on your system.
Clone the project to your directory and install the dependencies.

$ git clone https://github.com/wisnuuakbr/blog-rest-go
$ cd blog-rest-go
$ go mod tidy

Configuration

Copy the .env.example file and rename it to .env
Change the config for your local server

DB_HOST     = localhost
DB_PORT     = 5433
DB_USER     = postgres
DB_PASSWORD =
DB_NAME     = blog_rest_go
PORT        = 3000

Running Migration

$ go run db\migration\migration.go

Running Server

$ go run main.go

About

Building simple blog app with Go, Gin, Gorm, and PostgreSQL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages