Skip to content

This is a boilerplate repository to streamline development with the ICP Azle framework. This repository is tailored for seamless integration with the message board canister on the Dacade website.

Notifications You must be signed in to change notification settings

EmmanuelHaggai/ICP-Azle-Boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ICP Azle Boilerplate

This is a boilerplate repository to streamline development with the ICP Azle framework. This repository is tailored specifically for seamless integration with the message board canister on the Dacade website. For a comprehensive tutorial and demonstration, check out this video guide on YouTube: [https://www.youtube.com/watch?v=2VR3sY2KuCQ].

Key Features:

  1. ICP Azle Compatibility: The boilerplate code is intricately crafted to align perfectly with the ICP Azle framework, ensuring optimal performance and adherence to best practices.

  2. Message Board Canister Integration: This repository is designed with a specific focus on compatibility with the message board canister on the Dacade website. Harness the power of the ICP network while effortlessly incorporating message board like functionality into your decentralized applications.

Getting Started:

  1. Install dependencies Ubuntu/WSL
sudo apt update
sudo apt upgrade
sudo apt install clang
sudo apt install build-essential
sudo apt install libssl-dev
sudo apt install pkg-config
  1. Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Mac

# Install the Xcode Command Line Tools
xcode-select --install
  1. Install Node.js
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

Now restart your terminal and run the following command:

nvm install 18

Check that the installation went smoothly by looking for clean output from the following command:

node --version
  1. Install dfx Run the following command to install dfx 0.15.1:
DFX_VERSION=0.15.1 sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"

Restart the terminal and then check that the installation went smoothly by looking for a clean output from the following command:

dfx --version

If after trying to run dfx --version you encounter an error such as dfx: command not found, you might need to add $HOME/bin to your path. Here's an example of doing this in your .bashrc:

echo 'export PATH="$PATH:$HOME/bin"' >> "$HOME/.bashrc"
  1. clone this repo
git clone https://github.com/EmmanuelHaggai/ICP-Azle-Boilerplate.git
  1. Install the dependencies
cd ICP-Azle-Boilerplate/
npm install
  1. Start your dfx code
dfx start --clean --background
  1. Deploying your local canister
dfx deploy

After deploying your canister, you will see an output with links that you can use to interact with your canisters.

  1. If you want to stop a local replica
dfx stop

About

This is a boilerplate repository to streamline development with the ICP Azle framework. This repository is tailored for seamless integration with the message board canister on the Dacade website.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published