Hello, world!
"Hello, world!" projects are a common starting point for developers learning new languages or platforms, as it provides a simple demonstration of how a programming language can be written for an application.
This variation of "Hello, world!" is written in Rust,a programming language designed specifically for developing canisters on ICP. Smart contracts on ICP are called canisters.
Project structure
The /backend
folder contains the Rust smart contract:
Cargo.toml
, which defines the crate that will form the backendlib.rs
, which contains the actual smart contract, and exports its interface
Deploying from ICP Ninja
When viewing this project in ICP Ninja, you can deploy it directly to the mainnet for free by clicking "Deploy" in the upper right corner. To open this project in ICP Ninja, click here.
To download or reset the project files, click the menu option next to the deploy button.
Build and deploy from the command-line
To migrate your ICP Ninja project off of the web browser and develop it locally, follow these steps. These steps are necessary if you want to deploy this project for long-term, production use on the mainnet.