Skip to Content
Supra Layer 1MoveVMSupra Dapp Templates

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:

cd your/workspace
Run the following command:
npx @supranpm/supra-dapp-templates
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:

cd your/project-name
Build & Run the Frontend of the Dapp.
npm run build npm start
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, and frontend integration.
  • Supra dVRF Template: Template to get started with dapp on Supra dVRF on Supra MoveVM.
  • Supra Automation Template: Template to get your first Supra Automation task registered for the auto wallet top-up use case.
  • Supra Push Oracles Template: Template to integrate Supra’s push oracle data feeds in Move smart contracts on Supra Move.

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:

Last updated on