DFX Canister for Supernova Demo Day presentation. Built with Typescript, Azle and DeTi.
Find this project deployed on the Internet Computer.
- DFX
- Rust
- cmake (often on macos)
Install the DFX client:
sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"Here's a simple way to install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shOn our machines, we needed to install cmake as well. We did this using homebrew on macos:
brew install cmakeWe are fans of the yarn package manager and will reference it for the purpose of this tutorial.
yarnThat's it - your dependent node_modules get installed across the whole system.
First, make sure dfx is running from the context of this repository directory, ideally in its own terminal window
dfx startFirst, launch the backend
yarn rebuild:backend
yarn deploy:local backendSecond, you can start the frontend using the React hot server
yarn startManage the react dependencies and setup in the /react subdirectory. Typescript source files are in the react/src subdirectory.
The backend is written in TS to introduce one to Azle. Walk through the code and the Azle documentation to get a sense of how it works.
We are grateful to the DFINITY foundation, the SUPERNOVA hackathon, helpful people on the DFINITY dev discord, and especially to Jordan Last for getting us through some of the tough parts of making our project work on IC and on Azle.
Happy building!