go mod tidy
This project using PostgreSQL as database. There is two options for you to host it:
cloudflared access tcp --hostname dbclone.fanesp.online --url 127.0.0.1:5432
wsl --install
wsl --set-default Ubuntu
Note: after install, you need to input username and password, that's for root user of your linux
sudo apt update
sudo apt install postgresql postgresql-contrib
sudo systemctl status postgresql
sudo systemctl start postgresql
# make sure it's active when check the status
sudo -u postgres psql
ALTER USER postgres PASSWORD 'secret';
CREATE DATABASE procom_kas;
GRANT CREATE ON DATABASE procom_kas TO postgres;
Note: replace 'secret' with your preferences, this will be put to your .env
To solve an issue from Backlog, always create a new branch to the related repository. The format is {type}/{your-issue}
. Example:
feature/add-middleware
, fix/cannot-create-user
Commit at the smallest meaningful changes possible. Give clear and concise commit message:
This will help you and other team member to debug later when there’s a failure. Example commit message:
add: middleware for auth user
edit: create new user response
fix: cannot create new user
After making modifications, make sure you can run it on your local. Pay attention to warnings and errors and fix that before continue to next step.
go run main.go
Or you can use make dev
command if you install makefile software.
Push your working modification to your own branch.
git pull origin development
Give clear PR title message to each branch, let the other developer know what you’re trying to merge. Example PR title:
Feature/Route to create a financial request
Fix/Cannot create a new user
Development
Staging
Master