You can deploy Polyhoot! server to your machine with purpose of hosting games yourself. You'll also have to build Android client with your own WebSocket IP in order to play. These instructions will get you a copy of the project up and running on your local machine for any purpose possible.
- Java Development Kit 17
git clone https://github.com/polyhoot/server -b masterAt this point you have to export MONGOURI and JWT_SECRET environmental variables.
You should create a MongoDB and copy the connection URI and export it to MONGOURI
JWT_SECRET should be a random string, it will be used as key for JWT Auth
export MONGOURI="mongodb..."
export JWT_SECRET=<random string>To build server you should run shadowJar Gradle task. You can do that with:
./gradlew shadowJarA runnable JAR file will be generated and placed to build/libs/polyhoot_server.jar
To run server use standard java -jar command
java -jar build/libs/polyhoot_server.jar <options>There are only three options so far:
--port, -p [8080] -> Port server should listen to { Int }
--debug, -d [false] -> Debug mode (MongoDB logging mostly)
--help, -h -> Usage info
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
