Git Product home page Git Product logo

algokit-react-frontend-template's Introduction


This template provides a baseline React web app for developing integrating with any ARC32 compliant Algorand smart contracts.

To use it install AlgoKit and then either pass in -t react to algokit init or select the react template interactively during algokit init.

This is one of the official frontend templates used by AlgoKit to initialise an Algorand enabled React web app ready for integrating with your smart contracts. It's made by relying on a Copier templates.

Features

This template supports the following features:

  • React web app with Tailwind CSS and TypeScript
  • Styled framework agnostic CSS components using DaisyUI.
  • Starter jest unit tests for typescript functions. Can be disabled if not needed.
  • Starter playwright tests for end to end testing. Can be disabled if not needed.
  • Integration with use-wallet for connecting to Algorand wallets such as Pera, Defly and Exodus.
  • Example of performing a transaction.
  • Dotenv support for environment variables, as well as a local only KMD provider that can be used for connecting the frontend component to an algokit localnet instance (docker required).
  • CI/CD pipeline using GitHub Actions (Vercel or Netlify for hosting)

Getting started

Once the template is instantiated you can follow the README.md file to see instructions for how to use the template.

Interactive Wizard

To initialize using the algokit CLI:

  • Execute the command algokit init. This initiates an interactive wizard that assists in selecting the most appropriate template for your project requirements.

To initialize within GitHub Codespaces:

  • Follow these steps to leverage GitHub Codespaces for template selection:

    1. Go to the algokit-base-template repository.
    2. Initiate a new codespace by selecting the Create codespace on main option. This can be found by clicking the Code button, then navigating to the Codespaces tab.
    3. Upon codespace preparation, algokit will automatically start LocalNet and present a prompt with the next steps. Executing algokit init will initiate the interactive wizard.

algokit-react-frontend-template's People

Contributors

aorumbayev avatar inaie-makerx avatar loedn avatar negar-abbasi avatar neilcampbell avatar robdmoore avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

algokit-react-frontend-template's Issues

Fix usage of useWallet hook in default app component

useWallet hook cannot be used in the root App component. It can only be used in a component that's a child of WalletProvider
The template is still using v2.1.1, but the latest version shows a more descriptive error explaining this.

Since this is a common mistake a lot of devs make, we should upgrade to the latest version of use-wallet.

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.