Real-time post recommender based on old hackernews ranking algo
- Gravity adjustment based on ranking stats
- Simulator based on read-write ratio?
- Code & Test refactorings
- Go 1.20
- Docker & docker-compose
- golang-migrate
- Create
.env
in/deployments
folder
docker-compose -f deployments/docker-compose.yaml up
docker-compose -f deployments/docker-compose.yaml stop
docker-compose -f deployments/docker-compose.yaml exec -it db psql -U app -d app
./scripts/run_tests.sh
go run cmd/driver/post_generator_driver.go
docker-compose -f deployments/docker-compose.yaml --profile tools run migrate up
docker-compose -f deployments/docker-compose.yaml --profile tools run migrate down
docker-compose -f deployments/docker-compose.yaml --profile tools run migrate force <VERSION>
- Run docker-compose without web-server container
docker-compose -f deployments/docker-compose.yaml up db cache
- Load up .env in the terminal. Depending on the shell environment you're running, the command may be different.
source deployments/.env
- Run go build with your choice of debugger
go run cmd/server/web_server.go