Skip to content

sanjay-xdr/GoChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Chat Application in Go

Overview

This is a basic chat application built using Go. The application leverages WebSockets for real-time communication, the Pat router for HTTP routing, and Jet for template rendering.

Features

  • Real-time messaging using WebSockets (Gorilla WebSocket)
  • User online status display
  • Automatic removal of users when they leave
  • Automatic reconnection for users in case of disconnection

Prerequisites

Ensure you have the following installed on your machine:

  • Go (version 1.16 or later)
  • Git

Installation

  1. Clone the repository:

    git clone https://github.com/sanjay-xdr/GoChat.git
    cd GoChat
  2. Install the necessary Go dependencies:

    go get github.com/gorilla/websocket
    go get github.com/bmizerany/pat
    go get github.com/CloudyKit/jet/v6

Running the Application

To run the chat application, use the following command:

go run cmd/web/*.go

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages