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
- Host: GitHub
- URL: https://github.com/crandel/golang_chat
- Owner: Crandel
- License: mit
- Created: 2016-06-20T08:32:14.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-09-05T20:45:11.000Z (almost 5 years ago)
- Last Synced: 2025-01-27T06:32:18.428Z (over 1 year ago)
- Topics: chat, golang, websocket
- Language: JavaScript
- Homepage:
- Size: 241 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```