Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pixel-tactics/pixel-tactics-match
Pixel Tactics Match Microservice. Built with Gin and Gorilla Websocket.
https://github.com/pixel-tactics/pixel-tactics-match
backend gin golang gorilla-websocket microservice rabbitmq websocket
Last synced: 8 days ago
JSON representation
Pixel Tactics Match Microservice. Built with Gin and Gorilla Websocket.
- Host: GitHub
- URL: https://github.com/pixel-tactics/pixel-tactics-match
- Owner: Pixel-Tactics
- License: mit
- Created: 2024-05-08T11:39:50.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-08T08:59:29.000Z (3 months ago)
- Last Synced: 2024-08-09T11:19:29.888Z (3 months ago)
- Topics: backend, gin, golang, gorilla-websocket, microservice, rabbitmq, websocket
- Language: Go
- Homepage:
- Size: 113 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pixel Tactics - Match Microservice
![Go](https://img.shields.io/badge/go-%2300ADD8.svg?style=for-the-badge&logo=go&logoColor=white)
![RabbitMQ](https://img.shields.io/badge/Rabbitmq-FF6600?style=for-the-badge&logo=rabbitmq&logoColor=white)This is the match microservice of Pixel Tactics. This service focuses on handling game matches such as match invitation, heroes pickup, turn-based gameplay, etc.
## Installing
First, you need to setup the environment variables. You can create `.env` file in the root directory to do this step. Below are the required envs:
- `USER_MICROSERVICE_URL`: URL for user microservice deployment. Example: `http://localhost:8080` for local development and `https://users.deployment-website.com`.
- `RABBITMQ_CONNECTION_STRING`: Connection string for RabbitMQ in the format of `amqp://USERNAME:PASSWORD@HOST:PORT/`. Example: `amqp://guest:guest@localhost:5672/`.After setting up the environment variables, you need to install dependencies.
```
go mod tidy
```Ensure that the User Microservice and RabbitMQ server are active. Then, to run this service, run:
```
go run src/main.go
```## Developers
- Meervix (Emyr298)