An open API service indexing awesome lists of open source software.

https://github.com/jagthefriend/go-chat-app

A simple chat app (backend only) built using Golang
https://github.com/jagthefriend/go-chat-app

echo golang websocket

Last synced: 10 months ago
JSON representation

A simple chat app (backend only) built using Golang

Awesome Lists containing this project

README

          

# Go Chat App

## Description

Go Chat App is a simple chat application built using Go and the Echo framework.\
It allows users to send and receive messages in real-time.

## Table of Contents

* [Getting Started](#getting-started)
* [Features](#features)
* [Installation](#installation)
* [Usage](#usage)
* [Contributing](#contributing)
* [License](#license)

## Getting Started

### Prerequisites

* Go 1.17 or higher
* Echo framework
* A code editor or IDE of your choice

### Installation

1. Clone the repository: `git clone https://github.com/JagTheFriend/Go-Chat-App.git`
2. Navigate to the project directory: `cd Go-Chat-App`
3. Run the application: `go run cmd/main.go`

## Features

* Real-time messaging
* User (along with Message) routing and handling

## Usage

### API Endpoints

* `GET /user/:id`: Retrieve a user by ID
* `POST /user/new`: Create a new user
* `DELETE /user/:id`: Delete a user
----
* `GET /message/:id`: Retrieve a message by ID
* `POST /message/new`: Create a new message
* `DELETE /message/:id`: Delete a message

## Contributing

Contributions are welcome! Please submit a pull request with your changes.