This repo contains
- An auction smart contract written with PyTeal and Beaker
- Python Tests written with Beaker and pytest
- TypeScript Tests written with beaker-ts and jest
- A web-based front-end written with js-algorand-sdk and beaker-ts (based on algo-web-template)
python -m venv .venv
andsource .venv/bin/activate
to create a virtual environment to install python dependenciespip3 install -r requirements.txt
to install python dependencies
source .venv/bin/activate
to activate virtual environmentpython auction.py
to generate artifacts (.teal
,.json
files)pytest
to execute tests
cd web/
npm i
to install the nodeJS dependenciesnpm run beaker
to compile the smart contract and generate the typescript class for the beaker applicationnpm run serve
to serve and open web app
To use the app you must have at least one account in MyAlgo funded on testnet. You can get testnet funds here
cd web/
npm i
to install the nodeJS dependenciesnpm run test
to compile and run Jest tests