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

https://github.com/crandel/golang_chat

Extended chat implementation for understanding how build go web sites
https://github.com/crandel/golang_chat

chat golang websocket

Last synced: 12 months ago
JSON representation

Extended chat implementation for understanding how build go web sites

Awesome Lists containing this project

README

          

# Websocket chat written on golang

P.S. This project was written in 2017 and became outdated.
New version could be found [here](https://github.com/Crandel/go_chat)

In this project I try to understand, how to create web apps using golang.

There are so many examples about creating simple chats, but unfortunately to little about creating complex web solutions with authentication and config management, etc.

So in this project I try to discribe as many different web problem solving, as I can.

To start server you need to copy `example.json` to `config.json` and change values, configure database connection
```bash
cp example.json config.json
```

Also you need to install all dependencies using [Govendor](https://github.com/kardianos/govendor) tool

```bash
go get -u github.com/kardianos/govendor
govendor sync
```

Than you need to build binary file
```bash
go build -o output_binary .
```

And run binary file

```bash
./output_binary
```