smogon / pokemon-showdown-loginserver

MIT License
4 stars 26 forks source link

Set up Docker env for local development #27

Open MCGallaspy opened 1 week ago

MCGallaspy commented 1 week ago

This PR adds a docker files and compose spec, to enable quickly setting up a dev environment for loginserver testing. Right now, it starts a loginserver instance, mapping port 8080 on the container to the host, along with a cockroachdb instance.

By running docker compose up --build --watch you will build and start both services and can monitor their combined logs on the console. Changing the source files will trigger a rebuild (aka hot reloading).

MCGallaspy commented 6 hours ago

I'll cherry-pick the batch endpoint changes onto a new branch.