Coder Social home page Coder Social logo

learn-algokit-ts-client's Introduction

Learn Autogenerated AlgoKit TS Client with Calculator App

This project is meant to be cloned and used to follow along the AlgoKit App Client Explained video. With this project, you will learn how to set up your development environment with algokit bootstrap all, how to generate a typescript client for contract interaction with algokit generate and use the generated client to interact with a calculator smart contract.

Contents

๐Ÿ“‚smart_contract - Directory containing files related to the calculator smart contract
โ”ƒ ๐Ÿ“‚artifacts - Directory containing autogenerated artifacts
โ”ƒ ๐Ÿ“œbuild.py - Python script that generates artifacts from the PyTeal/Beaker smart contract
โ”ƒ ๐Ÿ“œcalculator.py - Calculator smart contract in PyTeal/Beaker
โ”ƒ ๐Ÿ“œdeploy.ts - Deploy/interact script with the contract using the generated ts client
โ”ƒ ๐Ÿ“œ**.env** - Contains localnet env variables

Setup

  1. Ensure you have AlgoKit installed and run algokit bootstrap all in this directory
  2. Go into the smart_contract folder by running cd smart_contract
  3. Generate ts client with algokit generate client artifacts/ --output artifacts/client.ts. Learn more about algokit generate here
  4. Ensure you have Docker running and launch Localnet with algokit localnet start
  5. copy everything inside of .env.localnet.template file into .env file.
  6. Run the deploy.ts file by running npm run deploy in the smart_contract folder

Tools

The following tools are used in this project:

learn-algokit-ts-client's People

Contributors

dependabot[bot] avatar nullun avatar iskysun96 avatar noliveira95 avatar

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.