yral-dapp / hot-or-not-backend-canister

Other
8 stars 6 forks source link

HotOrNot Backend Canisters

Deploying Canisters locally

To deploy canisters locally using dfx follow these steps.

Step 1

Start dfx server

dfx start --background

Step 2

Run the install script to build and deploy canisters. you can skip the test run by passing -s flag

scripts/canisters/local_deploy/install_all_canisters.sh [-s]

NOTE: This will only deploy one subnet-orchestrator (also called user-index in codebase) and will not deploy platform-orchsetrator. Platform-orchestrator needs to be deployed and tested separetly

Upgrading locally deployed canisters

To upgrade locally deployed canisters. Run the following commands

Step 1

Run the candid generator script to auto generate the candid files for the canisters.

scripts/candid_generator.sh

Step 2

Build and upgrade the canisters deployed. You can pass -s flag to skip the tests

scripts/canisters/local_deploy/upgrade_all_canisters.sh [-s]

Mainnet Deployment

Mainnet Deployment Checks

These checks are important and should be strictly performed before raising any Pull request and ensure everything passes.

Mainnet Deployment

The process of deploying to the mainnet is as follows:

Verifying builds

To get the hash for canisters:

To get the hash for canister deployment:

To check the status of the deployment