Jump-start your development on VeChain with our pre-built templates that come with pre-configured tools, best practices, and comprehensive documentation to help you start building right away.
npm install create-vechain-dappThis is your one-stop solution for kickstarting development on the Vechain blockchain. Whether you're building a complex X2Earn application, a simple decentralized app, or just working on smart contracts, we've got you covered with our carefully crafted templates. Each template comes with pre-configured tools, best practices, and comprehensive documentation to help you start building right away.
``bash`
npm create vechain-dapp
or
`bash`
yarn create vechain-dapp
or
`bash`
npx create-vechain-dapp@latest
A comprehensive monorepo setup using Turbo with:
- React frontend โ๏ธ
- Express.js backend ๐
- Hardhat for smart contract development ๐จ
- Advanced features including ChatGPT image recognition ๐ผ๏ธ
- VeBetterDAO contract interactions ๐ค
- Complete X2Earn application infrastructure
Perfect for building sophisticated X2Earn applications on VeChain.
A streamlined monorepo setup using Turbo with:
- React frontend โ๏ธ
- Hardhat for smart contract development ๐จ
- Basic Dapp infrastructure
Ideal for developers starting new projects on VeChain from scratch.
There are two versions of this template:
- Using VeChain Kit
- Using DAppKit
Guided template with examples on how to create a dapp, a smart contract and link them both.
The "Buy Me A Coffee" DApp allows users to send coffee donations to the contract owner. It is built using Solidity for the smart contract and can be deployed using Hardhat.
A focused template for smart contract development:
- Hardhat development environment ๐จ
- Contract deployment tools ๐
- Testing infrastructure ๐งช
Best suited for developers focusing solely on smart contract development without frontend requirements.
Each template includes detailed documentation and setup instructions in its respective directory.
Want to add your own template? Follow these steps:
1. Create a public repository with your template
2. Fork this repository and create a Pull Request with the following changes:
a. Add your repository to scripts/update-templates.sh:
`bash`
REPOS=(
// ... existing repos ...
"https://github.com/your-username/your-template.git your-template-name"
)
b. Add your template details to index.js:
`javascript`
const templates = [
// ... existing templates ...
{
value: "your-template-name",
title: "Your Template Title",
description: "A brief description of your template ๐",
},
];
3. Submit your PR with a description of your template and its use cases
After merging template PRs, follow these steps to publish the changes:
1. Increment the version in package.json:
2. Run npm link to test the package locally
3. Run scripts/update-templates.sh to update the templates
4. Run npm publish` to publish the new version to npm registry
Note: Make sure you have the necessary npm permissions to publish the package.
This project is licensed under the MIT License.