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
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.
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= ''
How the code can run :
go mod tidy
go run main.go