lets-go-chat
Let's Go Chat
How to use
HOST=127.0.0.1 PORT=8080 go build && ./lets-go-chat
or with reflex
HOST=127.0.0.1 PORT=8080 reflex -r '\.go' -s -- sh -c "go build && ./lets-go-chat"
Database
docker run -it --rm --name go-postgres -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=secret postgres:14.0
Generate code from openapi
oapi-codegen -generate types -o api/server/types.gen.go -package server api/openapi.yaml
oapi-codegen -generate chi-server -o api/server/server.gen.go -package server api/openapi.yaml
How to test
mockery --all && MallocNanoZone=0 go test -race -shuffle=on ./...
How to run load test
artillery run ./loadtest.yml --output result.json
Authors
License
Mozilla Public License v2.0