Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yeukfei02/wannachat

WannaChat
https://github.com/yeukfei02/wannachat

chat docker gin golang postgres

Last synced: 4 days ago
JSON representation

WannaChat

Awesome Lists containing this project

README

        

# WannaChat

WannaChat

documentation:

## Requirement

- install go

## Testing and run

```zsh
// install deps
$ go mod tidy

// use go start server
$ go run main.go

// use air start server
$ air

open localhost:8080

// run test case
$ cd src/test
$ go test -v

// format code
$ go fmt
```

## Docker

```zsh
// build images and start container in one line
docker-compose up -d --build

// go inside container
docker exec -it /bin/bash

// check container logs
docker logs

// remove and stop container
docker-compose down
```

open localhost:8080

## Contributing

Please refer to [CONTRIBUTING.md](https://github.com/yeukfei02/WannaChat/blob/master/CONTRIBUTING.md)