Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mstgnz/go-socket
Websocket
https://github.com/mstgnz/go-socket
animation chat docker golang javascipt websocket
Last synced: 1 day ago
JSON representation
Websocket
- Host: GitHub
- URL: https://github.com/mstgnz/go-socket
- Owner: mstgnz
- License: mit
- Created: 2023-09-21T18:42:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-07T19:21:10.000Z (about 1 year ago)
- Last Synced: 2024-06-21T02:12:05.212Z (7 months ago)
- Topics: animation, chat, docker, golang, javascipt, websocket
- Language: JavaScript
- Homepage:
- Size: 151 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WebSocket Chat Application with Game Environment
This application is a browser-based multiplayer chat and gaming platform. Each user has a game area that covers the entire browser screen. Every user is represented by a 75x75 pixel circle with a randomly generated name inside it. Users can move their characters by clicking anywhere on the screen.
## Getting Started
Follow the steps below to start the project locally or on a web server.
### Prerequisites
- Install the Go programming language locally.
- Make sure your browser supports WebSocket.### Installation
1. Clone this repository to a local directory:
```bash
git clone https://github.com/mstgnz/go-socket
cd go-socket
```2. Run project
```bash
docker build -t go-socket:latest . && docker run -d --restart=always -p 3000:3000 --name=go-socket go-socket
```
OR
```bash
docker compose up -d
```3. Go to browser open the link http://localhost:3000
### Usage
Launch the application in your browser and join with a random username.
Click anywhere on the game area to move your character in that direction.
Type a message in the text box at the bottom and press "Enter" to send a message.### Contributing
This project is open-source, and contributions are welcome. Feel free to contribute or provide feedback of any kind.### License
This project is licensed under the MIT License. See the [LICENSE](https://github.com/mstgnz/go-socket/blob/main/LICENSE) file for more details.