lets-go-chat

command module
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

README

lets-go-chat

Go Reference Go Report Card Maintainability Test Coverage

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
pkg
hasher
Package hasher provides common functions for working with passwords.
Package hasher provides common functions for working with passwords.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL