- Introduction
- Features
- Prerequisites
- Installation
- Configuration
- Running the Application
- Usage
- Contributing
- License
This project is a real-time chat application built using Go, Fiber, and HTMX. It allows users to join a single chat room and send messages in real-time. The backend is powered by Go and Fiber, a fast HTTP framework, while HTMX is used for dynamic, real-time interactions on the frontend without requiring a full page reload.
- Real-time messaging using WebSockets
- Single chat room
- User-friendly interface
- Lightweight and fast
- Easy to deploy
Before you begin, ensure you have the following installed:
-
Clone the repository:
git clone https://github.com/your-username/realtime-chat-app.git cd realtime-chat-app
-
Install Go dependencies:
go mod download
Create a .env
file in the root directory and add the following configuration variables:
PORT=3000
You can modify the values according to your environment.
-
Start the Go server:
go run main.go
-
Open your browser and navigate to:
http://localhost:3000
- Open the app in your browser.
- Join the chat room.
- Start sending messages in real-time.
Contributions are welcome! Please fork the repository and use a feature branch. Pull requests are reviewed on a regular basis.
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.