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.

  • Move Directory: create-aptos-dapp generates a move directory that includes the basic structure for Move modules (smart contracts).

  • 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.

Using create-aptos-dapp

cd your/workspace

Install create-aptos-dapp.

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

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

Let’s get started with the Boilerplate Template to kick off your Aptos DApp development. The provided template offers a solid foundation for building your application, complete with essential configurations and example code. This will help you streamline the setup process and focus on customizing and developing your unique DApp features.

Last updated