Skip to content

dimasyotama/go-notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-notes

This repository is like CRUD basic operation using golang with Gofiber Framework, database PostgreSQL and completed by Redis for caching, this repository using rate-limiting to prevent blasting api calling at one time

golangredispostgresql

Acknowledgements

First thing first you must be have 3 main Parts of this. For Golang this repository is using Gofiber, database using PostgreSQL and for caching (Redis) using dependicies Golang.

.env

Here it is example of .env that used in this repository, you can add the value based on your local setup

DB_HOST= ''
DB_NAME= ''
DB_USER= ''
DB_PASSWORD= ''
DB_PORT= 
REDIS_PASSWORD = ''
REDIS_ADDRESS= ''
REDIS_PORT= ''

Runs Program

How the code can run :

go mod tidy
go run main.go

Note : This code develop based on Golang 1.21.3