aptos-labs / aptos-labs/aptos-core
[DevEx RFC] Improve `create-apt-dapp` tool
- Dominant language
- Rust
- Stars
- 6.4k
- Forks
- 3.9k
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 78
Description
## Context
Improve `create-apt-dapp` tool and enhance the developer experience
[create-aptos-dapp GH repo](https://github.com/aptos-labs/create-aptos-dapp)
[Project roadmap](https://github.com/orgs/aptos-labs/projects/22/views/1)
## Motivation
A few months ago, Aptos released the `create-apt-dapp` tool which streamlines developers onboarding process by automating dapp structure creation and bundling essential components.
Currently, the tool supports a boilerplate setup by using a simple `npx` command which creates pre-made dapp skeletons, run `move` commands in a node environment using a `npm` command (`npm run move:test`, `npm run move:publish`, etc) and bundling Aptos and others packages like the Aptos SDK, Aptos wallet adapter, React framework, UI library, and more.
Since it was release, we have been getting user feedbacks and did some external brainstorming on how we can improve and enhance the tool to include the “all-you-need” environment to start develop/run a dapp on Aptos.
## Proposals
Some ideas to enhance the developer experience are:
- Migrate to `npx create-aptos-dapp` command. That would help with the confusion with the repo name and the tool name and also use a more meaningful command. (Thanks to the `Moralis` team for transferring the package name to us)
- Integrate the new SDK https://github.com/aptos-labs/aptos-ts-sdk
- PWA template support. This should hopefully help with some restrictions dapp creators are facing with app stores.
- React queries toolkit. Provide pre made react queries for popular queries like top up wallet with faucet, get account info, get account coin balance, get general state, etc
- Support a publish command to arweave to deploy the dapp to mainnet
- Pre made e2e dapp templates. Provide premade full e2e dapp templates (front and contract) that will easy the path for dapp creators and provide out-of-the-box solution. Some dapp template options can be:
- NFT Marketplace
- NFT Showcase
- Swap
## FAQ
- What’s your experience with the existing `create-apt-dapp` tool?
- What are your pain points?
- What you would like it to support?
- What dapp templates you would like to have?
**Please join the discussion and share your thoughts!**
Contributor guide
Research direction
Start by reviewing the linked create-aptos-dapp repository and project roadmap, then compare the current npx/npm workflow with the proposed SDK, PWA, React Query, publishing, and template ideas. The issue is an open RFC with FAQ prompts rather than a scoped implementation; a useful next step would require selecting and defining one proposal, including its acceptance criteria.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, react
- Domain
- developer-experience, tooling, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100