Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.7 KB

README.md

File metadata and controls

38 lines (27 loc) · 1.7 KB

wsstarter

This repo contains a very simple implemtation of a web based chat application written in go utilizing websocket technology

Snips

Single Double

Utilizes

  1. joewalnes/reconnecting-websocket - To facilitate reconnecting to the websocket incase of server disconnection.
  2. Jet Template Engine for Go
  3. bmizerany/pat - A Sinatra style pattern muxer for Go's net/http library
  4. Gorilla WebSocket - a Go implementation of the WebSocket protocol.

How to run

  0. You need to have Go installed on your computer. If not, You could head on over to <a href='https://go.dev/'>The Go Programming Language webiste</a> to learn more      about installing Go on your pc.
  1. Alternatively you could setup a docker environment to run the Go program. Here is what a simple local docker enviroment to run a go project would look like.
  2. Once your enviroment is all setup
  3. Clone the repo.
  2. Navigate to the root folder of the cloned repo.
  3. Run go run ./cmd/web/. (for windows pc) and go run /cmd/web/*(on mac) in the terminal.
  4. Pray that it works!
  5. If all is well, you should get  the following lines printed out on your terminal
          starting channel listener
          starting web server at port 8080

Don't know what Go/GoLang is?

Head on over to The Go Programming Language

Questions?

Didn't understand something? All the code is mostly self-explanatory but still if you have any questions email me([email protected])