Skip to content

0x-j/aptos-full-stack-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A template to build a full stack app on Aptos

Video tutorials

Contract and frontend

Custom indexer

Developing in GitHub Codespace

Overview

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.

  • move directory for the contract and integration tests
  • next-app directory for the Next.js frontend
  • node-scripts directory for some quick scripts to interact with the contract in Node.js
  • rust-indexer directory for custom indexer in Rust on the contract
  • ts-indexer directory for custom indexer in TypeScript on the contract

rust-indexer vs ts-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.

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" | python3

When 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

About

Template to build a full stack app on Aptos

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published