This project implements a simple vote system on the Azle platform, allowing users to be able to vote their candidate in a decentralized vote system.
- Node
- Typescript
- DFX
- Clone the repository:
git clone https://github.com/achmadst/VoteContract.git cd VoteContract nvm install 18 nvm use 18 npm install
- INSTALL DFX
DFX_VERSION=0.14.1 sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"
- Add DFX to your path
echo 'export PATH="$PATH:$HOME/bin"' >> "$HOME/.bashrc"
- Make sure you have the required environment for running ICP canisters and the dfx is running in background
dfx start --background --clean
- Deploy the canisters
dfx deploy
- Open the URL for Backend canister via Candid interface