AlgoKit Project Setup & Examples
Quick Start
# Install AlgoKit
pipx install algokit
# Create a fullstack project — smart contracts + React frontend (default)
algokit init -n my-project -t fullstack --answer preset_name production --answer contract_template typescript --defaults
# Development cycle
cd my-project
algokit project run build # Compile contracts
algokit project run test # Run tests
algokit localnet start # Start local network
algokit project deploy localnet # Deploy
Reference Guide
Creating Projects
Initialize new Algorand projects using AlgoKit templates and presets.
- project-templates.md — Templates, presets, CLI flags, and customization options
CLI Commands
Build, test, deploy, and manage LocalNet with AlgoKit CLI.
- cli-commands.md — Full CLI command reference and workflow
Searching Examples
Find working contract examples from Algorand Foundation repositories using GitHub tools.
- github-search-tools.md — GitHub MCP tools, priority repos, search patterns
Important Rules
- Always confirm with user before running
algokit init - Default to fullstack template (
-t fullstack) with TypeScript contracts and production preset — MUST pass--answer contract_template typescriptsince the default is Python - Always build before testing — tests use generated clients
- Search algorandfoundation repos first — official, vetted examples
Canonical Example Repos
| Repository | Best For |
|---|---|
algorandfoundation/devportal-code-examples |
Beginner-friendly contract examples (TypeScript + Python) |
algorandfoundation/puya-ts |
Advanced TypeScript contract examples |
algorandfoundation/puya |
Advanced Python contract examples |
algorandfoundation/algokit-fullstack-template |
Fullstack project template (contracts + React) |
Always fetch corresponding test files alongside contract examples.
Cross-References
algorand-core— AVM mental model, transaction types, protocol conceptsalgorand-typescript/algorand-python— Contract development syntax and patternsalgorand-frontend— React frontend integration and wallet connection