Skip to content
🎉 Welcome to the new Aptos Docs! Click here to submit feedback!
Build
create-aptos-dapp

create-aptos-dapp

create-aptos-dapp builds a template project for dapp developers to easily create a front-end and a smart contract on the Aptos network.

Why use create-aptos-dapp?

  • Templated Setup: create-aptos-dapp generates predefined end-to-end dapp templates and configuration files for you. It saves manual setup of the project structure, which can be time-consuming and error-prone.
  • Contract Directory: create-aptos-dapp generates a contract directory that includes the basic structure for Move smart contract modules.
  • Best Practices: create-aptos-dapp incorporates best practices and structure recommendations to develop for the Aptos network.
  • Built-in Move Commands: create-aptos-dapp includes built-in commands for common tasks, such as initializing the Move compiler, compiling, and publishing smart contracts on-chain.

Prerequisites

Using create-aptos-dapp

Terminal
cd your/workspace

Install create-aptos-dapp.

Terminal
npx create-aptos-dapp@latest

Follow the CLI prompts.

After installing, you will need to answer several questions about your project including:

  1. The project’s name
  2. Which template to use (see below)
  3. Whether to use Mainnet or Devnet for testing

cad

Templates

create-aptos-dapp provides you with premade end-to-end dapp templates, i.e. a ready dapp with configurations and a beautiful UI to get you started with creating a dapp on Aptos.

The goals of the templates are to:

  1. Familiarize users with different Aptos Standards by having an end-to-end dapp template examples.
  2. Educate users on how to build a dapp on Aptos from the front-end layer to the smart contract layer and how everything in-between.
  3. Provide users with pre-made templates to quickly deploy simple dapps

Current Templates

Tools create-aptos-dapp utilizes

  • React framework
  • Vite development tool
  • shadcn/ui + tailwind for styling
  • Aptos TS SDK
  • Aptos Wallet Adapter
  • Node based Move commands