You can check if dfx is already installed with dfx --version.
You can find more info here.
To download the DFINITY Canister SDK, run the following command in your terminal:
sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"
The file dfx.json is the configuration file which contains configurable options for your project.
{
"canisters": {
"web": {
"type": "assets",
"source": [
"www",
"www/css"
]
}
}
}The example above creates an assets canister named web.
In source all the asset directories are specified which will get uploaded to the canister.
In the previous step we specified that the assets will be contained in www and www/css, which contain index.html and style.css respectively.
If you need help deploying the project, then you can find more information here.
dfx start# Deploy locally (e.g. localhost:8000)
dfx deploy
# or on the IC itself
dfx deploy --network=icDepending where you deployed the canister, you can find it on:
http://localhost:8000/?canisterId=<canister id><canister id>.ic0.app
