Tion Security contains multiple programs
- Main server written in Rust
- User interface written in php
- Arduino client
- Raspberry client
Start with installing Rust and follow the setup guide
- Next change rust to the nightly version using the following command:
rustup default nightly
- If you are using a development enivorment install cargo-watch to automatic restart when a file changes:
cargo install cargo-watch
-
Copy example settings [main server/src/server/settings_private.rs.example] -> [main server/src/server/settings_private.rs] Edit the file according to your settings
-
Run the Database setup file in [main server/setup/tion.sql]
Normal startcommand:
cargo build
cargo run
Development command to detect filechanges:
cargo watch -x run --clear