These are not the required versions but what I used, your versions could be more recent.
To configure config.json, you have to configured as wished:
redisUrlto your redis server URL you just launched. Value can be found or your machine or WSL ip address.hostandportfor the server IP and port exposed. Choose your LAN IP address for your house or keep localhost for your computer. Port must match your reverse proxy entry.basePixelAmountandtimeoutin seconds define the number of pixels you can place per durationcolorsdefines the list of color codes displayed andcolorsActivethe index and order of active colorscanvasWidth,canvasHeightandcanvasChunkSizedefine how big your place is
You can take as default config.json for dev and config_prod.json for production.
To develop you will need to run frontend, backend, a redis server and configure config.json.
Install pnpm packages:
cd frontend
pnpm iTo run backend and frontend in parallel, you can install concurrently globally:
pnpm i -g concurrentlyNow you can launch dev command:
cd frontend
pnpm devTo run a redis server, just use docker or podman:
podman run -d -p 6379:6379 --name redis_server docker.io/library/redis:7-alpineTo watch the redis db, you can install and use redis-commander:
pnpm i -g redis-commanderBackend is started with reverse proxy for frontend at http://localhost:8080/ while redis-commander is started at http://127.0.0.1:8081/
Clone this repo duh. Build the docker image:
podman build -t rs-place:dev .Modify the provided docker-compose.yml file to your liking. Don't forget to configure your config.json file with production values. debugMode must be false to start with static files from frontend build. Config properties redisUrl and host can be both overwritten by respectively the REDIS_URL and HOST environment variables.
You can then start the containers:
podman compose up -dIf you are using ports < 1024, you should stop your podman machine and grant it root permissions:
podman machine stop
podman machine set --rootful
podman machine start