!!! THIS PROJECT IS UNDER DEVELOPMENT !!!
DEMO : https://youtu.be/Hdq7-OThoYg
GoMatchmaking is a matchmaking system built with Go and Firebase. It allows players to be added to a queue and automatically creates rooms when enough players are available.
-
Clone the repository:
git clone https://github.com/wysixontheflux/goMatchmaking.git cd goMatchmaking -
Install dependencies:
go mod tidy
-
Set up Firebase:
- Place your Firebase credentials file (
codseries.json) in thefirebasedirectory.
- Place your Firebase credentials file (
-
Start the matchmaking system:
go run main.go
-
Start the HTTP server:
The HTTP server will start automatically on port
8282. -
(Optional) Start the WebSocket server:
Uncomment the relevant code in
server/ws.goand start the WebSocket server.
main.go: Entry point of the application.firebase/: Contains Firebase initialization and helper functions.matchmaking/: Contains the matchmaking logic.server/: Contains the HTTP and WebSocket server implementations.models/: Contains the data models used in the project.
- Firebase:
- Ensure your Firebase credentials file (
codseries.json) is correctly placed in thefirebasedirectory. - Update the Firebase database URL in
firebase.goif necessary.
- Ensure your Firebase credentials file (
-
Fork the repository.
-
Create a new branch:
git checkout -b feature-branch
-
Make your changes and commit them:
git commit -m "Description of changes" -
Push to the branch:
git push origin feature-branch
-
Create a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.