E-commerce for men's product
- Golang as main programming language.
- Go Module for package management.
- Goose as migration tool.
- Postgresql as database driver.
- Docker-compose for running database container locally.
- Mockery for generate mockup object
HOST=
PORT=9000
DATABASE_URL=postgres://postgres:mypass@localhost:8010/matchoshop
DB_SSL_MODE=disable
TIMEZONE=Asia/Jakarta
export DATABASE_URL=postgres://postgres:mypass@localhost:8010/matchoshop
export DB_SSL_MODE=disable
docker-compose up
go get .
go mod tidy
go mod vendor
go build -o bin/matchoshop -v .
./bin/matchoshop
goose create AddSomeColumns
goose up
goose down
goose status
mockery --all --dir=internal --output=internal/mocks
go test -v ./path/to/test_file
go test -v ./internal/core/service
go test -v [function name]
go test -v -run TestProductCategory_Create_Success
git push heroku master