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:
- Node.js and npm installed.
- Python 3.6+ installed.
How to use:
Follow these steps to create your dapp:
Navigate to your desired directory:
cd your/workspaceRun the following command:
npx @supranpm/supra-dapp-templatesFollow 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:
Navigate to your project directory.
cd your/project-nameBuild & Run the Frontend of the Dapp.
npm run build
npm startAnd 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:
-
Fork the main repository on GitHub.
GitHub - Supra-Labs/supra-dapp-templates: This package provides a starter kit for dapp developers to bootstrap easily on the Supra network -
Clone the forked repository to your local machine.
-
Make your changes and push them.
-
Submit a pull request to the main repository.