Create your first canister

Requiments

* A wallet that you can login on nns

* A couple bucks worth of ICP on you wallet address

* A computer with the sdk of DFX installed


Setting up canister

  1. Sign in you nns account to start once you have added funds
  2. On the top right click the canister button
  3. Click the blue button that says create or link a canister
  4. Now Select create a new canister
  5. Select the wallet you want to use to add cycles to the canister
  6. Enter the amount you would like to use, create one cost you 1 cycle so what ever you add minus one will be whats left
  7. Going to want to click confim once you review to make sure eveyrthing is correct

Creating the project and connecting canister to it

  1. You are going to want to create the project where dfx is installed
  2. You can look at what we are building and deploying HERE!
  3. Clone the project
  4. Copy Text
    git clone https://github.com/chalkyjason/ICP4SimpleWebsite.git
  5. Now get your princle ID by runing this command
  6. Copy Text
    dfx identity get-principal

  7. You will now need to copy the princile ID so we add it as a controller in the canister
  8. Copy the canister ID now, so we can tell the project which canister we will deploying too
  9. Open the project in whatever you are using, I like atom and VS Code myself for this and change the canister_ids.json to your canister
  10. Now we deploy to the IC Network!
  11. Copy Text
    dfx deploy --network ic --no-wallet

    If everything worked you can check you site by youcanisteridhere.ic0.app

    If you need to update the site, just use the same command as before. It cost you everytime you do this, so keep that in mind. But it will be updating what is need

Next: Create Staic Website