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 amove
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
create-aptos-dapp
Navigate to the directory you want to work in.
Install create-aptos-dapp
.
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:
The project’s name
Which template to use (see below)
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:
Familiarize users with different Aptos Standards by having an end-to-end dapp template examples.
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.
Provide users with pre-made templates to quickly deploy simple dapps
Current Templates
Tools create-aptos-dapp
utilizes
create-aptos-dapp
utilizesReact 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