https://github.com/escalopa/anon-chat-app
A simple anonymous chat with websockets
https://github.com/escalopa/anon-chat-app
chat-app goalng websockets
Last synced: 2 months ago
JSON representation
A simple anonymous chat with websockets
- Host: GitHub
- URL: https://github.com/escalopa/anon-chat-app
- Owner: escalopa
- License: mit
- Created: 2024-09-20T03:25:46.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-09-23T19:03:17.000Z (8 months ago)
- Last Synced: 2025-01-19T15:20:01.412Z (4 months ago)
- Topics: chat-app, goalng, websockets
- Language: Go
- Homepage:
- Size: 80.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# π anon-chat-app π¨οΈ
Welcome to the Anonymous Chat App! π
This project is a real-time chat platform where users can join anonymously and communicate with others via WebSockets.
No usernames, no trackingβjust a simple, fun, and anonymous way to chat! π¬

## Features β¨
- **Real-time Messaging**: Instantly chat using WebSockets. β‘
- **Anonymous Chat**: No sign-up neededβjust join and start chatting! π
- **Message History**: Access all previous messages upon connecting. π
- **Quick Sending**: Use the send button or Ctrl + Enter for fast message delivery. π
- **Message Counter**: Check total messages sent via the /count endpoint. π
- **Data Persistence**: Chat history is saved in a file and reloaded on server start. π## Endpoints π¬
| Endpoint | Description |
| --- | --- |
| `/` | Home page |
| `/live` | WebSocket endpoint |
| `/count` | Total message count |## Quick Start π
### Docker run π³
```bash
docker run --rm -p 8080:8080 -d --name anon-chat-app dekuyo/anon-chat-app:latest
```Then, navigate to `http://localhost:8080` in your browser to start chatting!
For persistent data storage, you can mount a volume to the container:
```bash
touch data.json
``````bash
docker run --rm -p 8080:8080 -v $(pwd)/data.json:/app/data.json -d --name anon-chat-app dekuyo/anon-chat-app:latest
```### Running Locally π
**(1)** Clone the repository:
```bash
git clone github.com/escalopa/anon-chat-app
```**(2)** Navigate to the project directory:
```bash
cd anon-chat-app
```**(3)** Create storage file:
```bash
touch data.json
```**(4)** Run the server:
```bash
docker compose up
```**OR** using go
```bash
go run main.go
```## Technologies π»
GO | HTML | CSS | JavaScript | WebSockets | Docker
## Contributing π€
Feel free to submit issues, suggestions, or pull requests! Every contribution is welcome. π
## Future Improvements π οΈ
- Add HTTPS support for secure connections.
- Add metrics with prometheus & grafana.## License π
This project is licensed under the MIT License.
---
Enjoy your anonymous chat experience! ππ
---