This guide will walk you through the process of deploying a simple 'Hello World' dApp using the Internet Computer platform.
- 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.
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:
Your identity is required to interact with the Internet Computer network.
- Create a new identity by following the instructions provided here.
- Activate your new identity with this command:
dfx identity use <identity_name>
Start by generating a new project. This will create a basic 'Hello World' application:
dfx new hello
Follow these steps to deploy your app on a local server:
- Change to the project directory:
cd hello
- Start the local canister execution environment :
dfx start --background
- Deploy your application:
dfx deploy npm start
To view your app, open a web browser and navigate to:
http://localhost:8080
For deployment on the Internet Computer's main network:
- Create a cycles wallet and fund it, as detailed here.
- Deploy your project using this command:
dfx deploy --network ic
Topping-up canisters involves adding more computational resources (cycles) to your canisters on the Internet Computer.
- 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.