This is a web app and service allowing users to whitelist themselves on our Minecraft server. Users sign in using their D-sek account and can then connect their Minecraft username, which is checked against Mojangs public API. Every ten minutes, the service creates a whitelist.json file, which can be synced into the server folder of the Minecraft server using cron.
Create a .env file, following the example values in the .env.example file.
The output file is written to ./output/whitelist.json
Once you've created a project and installed dependencies with pnpm install, start a development server:
pnpm devIn production, the web app runs in a Docker (Podman) container. To build an image, use the followning command.
docker build .This can then be pushed to our image repo.