In order to run Spaced in development the following must be installed.
If you're using Nix, you can run nix-shell, or configure direnv to install
the required Tauri dependencies (and Playwright browsers).
You can choose either Docker or Podman. Docker is used in the pipeline and deployments as it provides Swarm support with the docker stack command.
| Docker | Podman |
|---|---|
| Docker => v20.10 | Podman |
| Docker Compose | Podman Compose |
Install dependencies for web-frontend.
npm ciPrepare the database with migrations.
npm run sqlx:prepare -- --tauri
# Or for all databases at the same time with:
# npm run sqlx:prepareThe services can be started with the following commands.
cargo run -i item_socket
# cargo run -i item_producer # Not used atm
# cargo run -i user_service # Not used atmThe web-frontend can be started with the following script.
npm run devThe web-frontend can also be displayed from a desktop application with the following command.
npm run tauri devThe web-frontend can be built using the following script.
npm run buildThe docker images for each service can be built using the following command.
docker compose --profile services build
# Or also directly started with:
# docker compose --profile services up -d --buildUse the following environment variable to change the image tag.
IMAGE_TAG=1.0 docker compose --profile services buildUse the following environment variable to change the distroless image tag. The default is nonroot, to debug with a shell use debug or debug-nonroot.
DISTROLESS_TAG=debug docker compose --profile services buildPlease read the contributing guidelines.
The project is licensed under a MIT license.
Some workspace members (or files) contain their own MIT License copies, as they are derivative works (packages).