toannd96 / go-chat-app

Go chat application. Implemented in multiple ways, using golang channel and redis pub/sub model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kayee... Chat Application

A detailed article is published on Medium.

Setup

Step 1

Clone the repository

Step 2

Run git mod tidy to install all the Golang dependencies.

Step 3

Go to clients and to install frontend dependencies.

npm install

Run the Application

Terminal 1

Start HTTP server

go run main.go --server=http

Terminal 2

Start WebSocket server

go run main.go --server=websocket

Terminal 3

Go to client and run

npm start

Application is live at localhost:3000.

About

Go chat application. Implemented in multiple ways, using golang channel and redis pub/sub model


Languages

Language:JavaScript 57.6%Language:Go 38.2%Language:HTML 3.9%Language:CSS 0.3%