This project allows anyone to host their own server, enabling them to solve quizzes together with friends on the Jetpunk.com website.
Before you begin, make sure the following are in place:
- Browser extension "Tampermonkey" for Firefox or Chrome
- For Firefox: Install here
- For Chrome: Install here
- Installed Node.js and NPM on your machine
Follow these steps to set up the project:
- Clone the repository:
git clone https://github.com/jonas1812st/Jetpunk-together.git- Navigate to the project directory:
cd Jetpunk-together- Install required node_modules:
npm install- In the
.envfile, you can adjust thePORTandHOST_SERVERoptions. PORTsets the server port.HOST_SERVERdefaults tohttp://localhost:3000.
- Start the server:
npm run start- Go to
https://YOUR_DOMAIN/jetpunk_together.user.js - Tampermonkey should automatically suggest installing the script.
- Click "Install".
- Go to Jetpunk.com
- A blue box will appear at the top. This is where all the multiplayer action happens.
You can deploy this project using Docker for easy setup and deployment.
./build-docker.shDOCKER_BUILDKIT=0 docker build -t jetpunk-together .Note: We use DOCKER_BUILDKIT=0 to avoid a known issue with BuildKit and npm install timing out during build.
docker run -d \
-p 3412:3412 \
-e PORT=3412 \
-e HOST_SERVER="http://your-domain.com:3412" \
-v $(pwd)/database:/app/database \
--name jetpunk-together \
jetpunk-together- Create or modify
.envfile with your settings:
PORT=3000
HOST_SERVER="http://your-domain.com:3000"- Start the container:
docker-compose up -d- Stop the container:
docker-compose downPORT: The port the server runs on (default: 3000)HOST_SERVER: The public URL where your server is accessible (e.g.,http://your-domain.com:3000)
After starting the Docker container, go to:
http://your-domain.com:3000/jetpunk_together.user.js
Tampermonkey will prompt you to install the script.