- Golang (1.22.3)
- Postgres (14.6)
- Docker (20.10.8)
- Redis (6.0.16)
Golang: brew install go
Ensure $GOPATH/bin is in $PATH
git clone https://github.com/techxclub/portal.git
- Run
make copy-configto create a local config file - Run
make db-resetto setup db - Run
make run-localto start the service on port 3000
- Run
make testto run all tests - Run
make test-coverageto generate test coverage - Run
make test-coverage-htmlto generate test coverage, and open the results in html format - Run
bin/happy-pathto simulate happy path on integration
- Run
make generate-mocksto generate mocks for all interface
- If any configs are changed/added, run
make sample-configto regenerate sample.application.yml with default values - Run
make cibefore pushing any new changes, to imitate what happens on CI
make help
- When making an API contract change, make the appropriate request changes in the handler, and regenerate docs with:
make generate-swagger - To view swagger docs locally:
make run-local, and open swagger path on a browser
