This guide provides the steps to set up a local development environment for CleanServe.
- Rust (edition 2021)
- Git
- Docker (optional)
Clone the repository and navigate into the project directory:
git clone https://github.com/LyeZinho/cleanserve.git
cd cleanserveCompile the project in debug mode for local development:
cargo buildFor production-ready binaries, use the release flag:
cargo build --releaseInitialize the configuration:
cargo run -- initStart the development server:
cargo run -- upEnable detailed logs by setting the RUST_LOG environment variable:
RUST_LOG=cleanserve=debug cargo run -- upRun the test suite across all crates in the workspace:
cargo testYou can run the development environment using Docker Compose:
docker-compose upThis uses the Dockerfile.dev configuration.
The project is organized into 9 crates located in the crates/ directory:
cleanserve-sharedcleanserve-corecleanserve-proxycleanserve-clicleanserve-watchercleanserve-vfscleanserve-bundlecleanserve-inlinercleanserve-preload