Contract and frontend
Custom indexer
Developing in GitHub Codespace
This template is an opinionated alternative template to CAD (create-aptos-dapp).
Please read each directory's README carefully to understand how to use the template.
movedirectory for the contract and integration testsnext-appdirectory for the Next.js frontendnode-scriptsdirectory for some quick scripts to interact with the contract in Node.jsrust-indexerdirectory for custom indexer in Rust on the contractts-indexerdirectory for custom indexer in TypeScript on the contract
rust-indexervsts-indexer: we recommend ts version for rapid prototyping because of simplicity, when you want to move to production, you can use the rust version which is complex but performant. In this template, both indexers are implemented and handle the same logic, you can compare the two implementations.
Using GitHub Codespace
If you are on a Windows machine or have trouble pulling a docker image or connecting to RPC, you can use GitHub codespace as a remote development server, this repo is pre-configured for codespace with all the dependencies (Rust, docker, google cloud cli) ready. If you use codespace, you can install aptos-cli via
curl -fsSL "https://aptos.dev/scripts/install_cli.py" | python3When you see warning like codespace is running low on disk space, you can prune docker cache
docker system prune -a
docker builder prune
docker system df