Backend repository for the Socky application
TODO: Add usage instructions with conventional setup, with docker and docker compose
NOTE: Install cargo watch with
cargo install cargo-watch
.
To watch both the server and the quick_dev in different terminals, execute the following:
# Terminal 1 - To run the server.
cargo watch -q -c -w src/ -w .cargo/ -x "run"
# Terminal 2 - To run the quick_dev.
cargo watch -q -c -w examples/ -x "run --example quick_dev"
To watch all unit tests while developing, use the following command:
cargo watch -q -c -x "test -- --nocapture"
Instead, if you prefer to execute only one test:
# Specific test with filter.
cargo watch -q -c -x "test model::task::tests::test_create -- --nocapture"