Skip to content

Latest commit

 

History

History
63 lines (52 loc) · 2.18 KB

Hello_World.md

File metadata and controls

63 lines (52 loc) · 2.18 KB

Deploying a Hello World dApp

This guide will walk you through the process of deploying a simple 'Hello World' dApp using the Internet Computer platform.

Hello World is a simple dapp consisting of two canisters:

  • A simple backend canister, hello_backend, implementing the logic of the application.
  • A simple frontend asset canister, hello_frontend, serving the assets of the dapp’s web user interface.

Prerequisites

Before you begin, make sure you have the Internet Computer Software Development Kit (SDK) installed on your system. You can find the installation guide for your operating system below:

Setting Up Your Identity

Your identity is required to interact with the Internet Computer network.

  1. Create a new identity by following the instructions provided here.
  2. Activate your new identity with this command:
    dfx identity use <identity_name>

Creating a New Hello World Project

Start by generating a new project. This will create a basic 'Hello World' application:

dfx new hello

Deploying Locally

Follow these steps to deploy your app on a local server:

  1. Change to the project directory:
    cd hello
  2. Start the local canister execution environment :
    dfx start --background
  3. Deploy your application:
    dfx deploy
    npm start

Accessing Your Local App

To view your app, open a web browser and navigate to:

http://localhost:8080

Deploying to the Internet Computer Mainnet

For deployment on the Internet Computer's main network:

  1. Create a cycles wallet and fund it, as detailed here.
  2. Deploy your project using this command:
    dfx deploy --network ic

Topping-up Canisters with Cycles

Topping-up canisters involves adding more computational resources (cycles) to your canisters on the Internet Computer.

  1. Follow the Detailed Guide: For step-by-step instructions on how to top-up your canisters with cycles, please refer to our Canisters Top-up Guide.