test123
This starter React project has been generated using AlgoKit. See below for default getting started instructions.
Setup
Initial setup
- Clone this repository locally
- Install pre-requisites:
- Install
AlgoKit
- Link: The minimum required version is1.1
. Ensure you can executealgokit --version
and get1.1
or later. - Bootstrap your local environment; run
algokit bootstrap all
within this folder, which will runnpm install
to install NPM packages and dependencies for your frontend component/webapp.
- Install
- Open the project and start debugging / developing via:
- VS Code
- Open the repository root in VS Code
- Install recommended extensions
- Hit F5 (or whatever you have debug mapped to) and it should start running with breakpoint debugging.
- Other
- Open the repository root in your text editor of choice
- In a terminal run
npm run dev
- VS Code
Subsequently
- If you update to the latest source code and there are new dependencies you will need to run
algokit bootstrap all
again - Follow step 3 above
Continuous Integration
This project uses GitHub Actions to define CI workflows, which are located in the .github/workflows
folder.
For pull requests and pushes to main
branch against this repository the following checks are automatically performed by GitHub Actions:
install
: Installs dependencies usingnpm
lint
: Lints the codebase usingESLint
build
: Builds the codebase usingvite
Tools
This project makes use of React and Tailwind to provider a base project configuration to develop frontends for your Algorand dApps and interactions with smart contracts. The following tools are in use:
- AlgoKit Utils - Various TypeScript utilities to simplify interactions with Algorand and AlgoKit.
- React - A JavaScript library for building user interfaces.
- Tailwind CSS - A utility-first CSS framework for rapidly building custom designs.
- daisyUI - A component library for Tailwind CSS.
- npm: Node.js package manager
- jest: JavaScript testing framework
- playwright: Browser automation library
- Prettier: Opinionated code formatter
- ESLint: Tool for identifying and reporting on patterns in JavaScript
- Github Actions workflows for build validation It has also been configured to have a productive dev experience out of the box in VS Code, see the .vscode folder.
Integrating with smart contracts and application clients
Refer to the detailed guidance on integrating with smart contracts and application clients. In essence, for any smart contract codebase generated with AlgoKit or ther tools that produce compile contracts into ARC34 compliant app specifications, you can use the algokit generate
command to generate TypeScript or Python typed client. Once generated simply drag and drop the generated client into ./src/contracts
and import it into your React components as you see fit.