Skip to content

rhdeck/deti-presentation

Repository files navigation

DETI-Presentation

DFX Canister for Supernova Demo Day presentation. Built with Typescript, Azle and DeTi.

Find this project deployed on the Internet Computer.

Prerequisites

  1. DFX
  2. Rust
  3. cmake (often on macos)

DFX

Install the DFX client:

sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"

Rust (Rustup)

Here's a simple way to install Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Cmake

On our machines, we needed to install cmake as well. We did this using homebrew on macos:

brew install cmake

Installation

We are fans of the yarn package manager and will reference it for the purpose of this tutorial.

yarn

That's it - your dependent node_modules get installed across the whole system.

Try it out

First, make sure dfx is running from the context of this repository directory, ideally in its own terminal window

dfx start

First, launch the backend

yarn rebuild:backend
yarn deploy:local backend

Second, you can start the frontend using the React hot server

yarn start

Managing frontend

Manage the react dependencies and setup in the /react subdirectory. Typescript source files are in the react/src subdirectory.

Managing backend

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.

Thank you

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!

About

IC Supernova Deti Presentation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors