Not affiliated with Clockwork Labs
This project is a work in progress and is not yet ready for production use. On that note we currently do not have an easy setup for contributing to this project. As you need to have all the game database state.
- Api (rust/api-server)
- Bitcraft Online (SpacetimeDB)
- TimescaleDB (Postgress)
We are using Bun for the frontend part which can be found in the frontend folder.
Make sure to install the dependencies:
bun installStart the development server on http://localhost:3000:
bun run devBuild the application for production:
bun run buildStart the production server:
bun run .output/server/index.mjsWe are using Rust for the frontend part which can be found in the rust/api-server folder.
To get the default config you can run the command bellow.
cargo run -- print-config --format toml --show-defaultWith this you need to create the config folder and create the config.toml with the content from the command above.
In there you need to change the following values:
[database]
url = ""
[spacetimedb]
domain = "localhost"
protocol = "https://"
databases = []
password = ""
websocket_protocol = "wss://"
cleanup = falseStart the development server on http://localhost:8080:
cargo run -- serveBuild the application for production:
cargo build --release