1.1.3 โ€ข Published 8 months ago

create-vechain-dapp v1.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

Create VeChain Dapp ๐Ÿš€

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

Usage ๐Ÿ“ฆ

npm create vechain-dapp

or

yarn create vechain-dapp

or

npx create-vechain-dapp@latest

Available Templates ๐Ÿ“š

X2Earn Template ๐Ÿ’ฐ

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.

Simple Dapp Template ๐Ÿ› ๏ธ

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.

Smart Contract Template ๐Ÿ“œ

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.

Contributing New Templates ๐Ÿค

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:

    REPOS=(
      // ... existing repos ...
      "https://github.com/your-username/your-template.git your-template-name"
    )

    b. Add your template details to index.js:

    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

For Repository Maintainers ๐Ÿ”ง

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.

License ๐Ÿ“„

This project is licensed under the MIT License.

1.1.1

8 months ago

1.1.0

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.1.3

8 months ago

1.1.2

8 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago

1.0.8

1 year ago