/ws-chat

chat application using WebSocket in Golang

Primary LanguageGo

ws-chat

chat application using WebSocket in Golang

wakatime


Setup, Build and Run:

Local:

  1. git clone https://github.com/SajjadManafi/ws-chat.git && cd ws-chat/
  2. make server   OR   go run ./cmd/web/*.go  OR   sudo docker-compose up
  3. Navigate to 127.0.0.1:8080‍‍

Deploy to Heroku:

Make sure you have Docker and Heroku Cli installation.

  1. git clone https://github.com/SajjadManafi/ws-chat.git && cd ws-chat/
  2. heroku login
  3. heroku container:login
  4. heroku create
  5. heroku container:push web
  6. heroku container:release web
  7. heroku open

Used packages:

Go:

JS:

ScreenShot