https://github.com/muthukumar89uk/go-chatapp-websocket
Go-based sample chat app using the WebSocket.The WebSocket API is an advanced technology that makes it possible to open a two-way interactive communication session between the user's browser and a server.
https://github.com/muthukumar89uk/go-chatapp-websocket
chat-application go golang mux-router viper websocket-application websocket-chat
Last synced: about 2 months ago
JSON representation
Go-based sample chat app using the WebSocket.The WebSocket API is an advanced technology that makes it possible to open a two-way interactive communication session between the user's browser and a server.
- Host: GitHub
- URL: https://github.com/muthukumar89uk/go-chatapp-websocket
- Owner: muthukumar89uk
- Created: 2024-07-29T14:53:37.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-07-31T15:26:56.000Z (10 months ago)
- Last Synced: 2025-02-08T01:33:22.408Z (3 months ago)
- Topics: chat-application, go, golang, mux-router, viper, websocket-application, websocket-chat
- Language: Go
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go Chat App Using WebSocket
This is a simple chat application built using Go and WebSockets. The application allows multiple users to send messages to each other in real-time.
## Features
- Real-time messaging using WebSockets
- Broadcast messages to all connected users## Project Structure
The project is organized into several packages, each responsible for specific functionalities:
- `handlers` : Contains the HTTP request handlers for different API endpoints.
- `config` : Contains basic configuration for the Database.
- `models` : Defines the data models used in the application.
- `drivers` : Contains functions for establish a connection to database.
- `helpers` : Custom package that contains all the constants.## Getting Started
### Installation
1. Clone the repository Or Download:
```
git clone https://github.com/muthukumar89uk/go-chatapp-websocket.git
```
Click here to directly [download it](https://github.com/muthukumar89uk/go-chatapp-websocket/zipball/master).### Install dependencies:
go mod tidy
### Run the Application
1. Run the Server:
```
go run .
```
2. Create the users using the `http://localhost:8080/user` URL.
3. Websocket server will start on `ws://localhost:8080/ws` URL.