kasfulk / segokuning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

go mod download

How to run this project

In development stage you can run this project using comstrek/air, install comstrek/air before running this project. After that, run this project using air command.

ENV VAR

SEGOKUNING

Copy variables below to your .bashrc or .zshrc

export DB_NAME=postgres
export DB_PORT=5432
export DB_HOST=localhost
export DB_USERNAME=postgres
export DB_PASSWORD=postgres
epxort APP_PORT=8000
export PROMETHEUS_ADDRESS=comingsoon
export JWT_SECRET=secretjwt
export BCRYPT_SALT=8 # jangan pake 8 di prod! pake > 10
export S3_ID=comingsoon
export S3_SECRET_KEY=comingsoon
export S3_BASE_URL=commingsoon

SEGOKUNING LOCAL MIGRATIONS

GOLANG-MIGRATE

Please install https://github.com/golang-migrate/migrate

UP

sh scripts/migrate_up_local.sh

DOWN

sh scripts/migrate_down_local.sh

About


Languages

Language:Go 98.4%Language:Makefile 0.9%Language:Shell 0.7%