Supra Dapp Templates

Welcome to @supranpm/supra-dapp-templates, your go-to starter kit for dapp development on the Supra network. This npm package allows developers to bootstrap their dapps with ease and efficiency.

Prerequisites

Before getting started, ensure the following:

How to use:

Follow these steps to create your dapp:

1
cd your/workspace
2

Run the following command:

npx @supranpm/supra-dapp-templates
3

Follow the CLI prompts:

  • Name your project.

  • Choose a template.

Running Your Project:

After you've selected your template and completed the setup, here’s how you can execute and run your project assuming you have used Supra StarKey Wallet Dapp Template:

1
cd your/project-name
2

Build & Run the Frontend of the Dapp.

npm run build
npm start
3

And your project should be up and running! Connect to your Starkey Wallet

Templates Available in the Package:

npx @supranpm/supra-dapp-templates offers multiple templates to accelerate dapp development:\

  • Basic Smart Contract Template: Boilerplate smart contract for quick access.

  • Supra SDK Dapp Template: Sample Supra SDK with StarKey Wallet integration for building a to-do list dApp and Frontend Integration.

  • Supra StarKey Wallet Dapp Template: A Spin the Wheel dapp built on Supra MoveVM Testnet with Supra_framework, StarKey Wallet & Frontend Integration

  • SupraVRF Move Template: Template for dapps using Supra dVRF on MoveVM.

Contribution:

We welcome contributions to enhance the functionality, add more dapp templates, or improve the user experience of this package. Here’s how you can contribute:

  • Fork the main repository on GitHub.

  • Clone the forked repository to your local machine.

  • Make your changes and push them.

  • Submit a pull request to the main repository.