cargo update --package
- comment out .cargo/config.toml file
- run
cargo test
- #[update] / #[query] to specify whether it is a query / update call
- #[candid_method(update)] / query to let test method generate candid file
- give permission to sh files
chmod +x start_main_server.sh
chmod +x start_club_server.sh
- run
./start_main_server.shto start main server. Note down the main server canister ID after finish and change it in parade-backend/club_server/src/api/constants.rs - run
./start_club_server.shto start club server. - Sometimes you need to run in reinstall mode to after you modify candid interface, run with -mode=reinstall
./start_main_server.sh -mode=reinstall
./start_club_server.sh -mode=reinstall
./start_main_server_prod.sh
./start_club_server_prod.sh
- run
dfx generateand paste files to frontend