Code Monkey home page Code Monkey logo

algonaut-myalgo-yew-template's Introduction

Algonaut + My Algo + Yew template

Continuous integration

Sign Algonaut transactions with My Algo wallet in a Yew application.

ScreenShot

โš ๏ธ my-algo-rust-adapter example project (see warning).

Pre-requisites

Rust

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

Cargo wasm-pack

cargo install wasm-pack

Node.js

Initialize

Fetch dependencies:

npm install

Run local developer setup

Start a local development server, which re-builds every time you make changes to the code:

npm run start:dev

Direct your web browser to: http://localhost:8000

Perform a release build

To build the Rust components and package up the NPM dependencies, run:

npm run build

The release is in the dist/ folder.

Algorand network setup

Update endpoint

Update dependencies.rs with your node's URL.

Testing with sandbox or private network

To sign transactions for a private network or sandbox using My Algo, you just have to share an account with your node. The network selected on My Algo doesn't matter (you probably want to use TestNet, for general bookkeeping).

To do this, you can either export the mnemonic from your node:

goal account export -a <ADDRESS> -d <node directory>

and import it in My Algo, or the other way, import the mnemonic from My Algo:

goal account import -m "<MNEMONIC>" -d <node directory>

Also, ensure that the account on the sandbox / private network is sufficiently funded:

goal clerk send -a <AMOUNT> -f <SENDER_ADDRESS> -t <RECEIVER_ADDRESS> -d <node directory>

You can alternatively perform these steps with the SDK.

Acknowledgments

Project configuration and instructions based on patternfly-yew-quickstart

Related

Minimal Algonaut and Yew integration (no wallet)

algonaut-myalgo-yew-template's People

Contributors

ivnsch avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

myway7

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.