Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-polkadot-dapp

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-polkadot-dapp

Create Polkadot DApp in one command:

  • 0.0.1
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

create-polkadot-dapp

Create Polkadot DApp in one command:

npx create-polkadot-dapp@latest

(the templates use pnpm as a package manager, so maybe do npm install -g pnpm first)

Templates

  • react-papi-tailwind:
    React front-end app with PAPI ReactiveDOT + dotconnect for chain and wallet interactions.
    Tailwind CSS + Tailwind UI.
    Vite for dev tooling.
  • react-solidity a monorepo for smart contracts for AssetHub and a React, Tailwind CSS and ethers

Planned templates

  • react-tailwind-solidity: a unified setup for developing Solidity smart contracts on Asset Hub
  • papi-nodejs: pure server-side application with polkadot-api

Development

How to spawn template from local copy

cd <path-to-create-polkadot-dapp>
yarn install && yarn build
cd <path-where-to-spawn-the-app>
npx --yes --package=<path-to-create-polkadot-dapp>/dist create-polkadot-dapp

Adding new template

Add sources to templates/ directory. These will be copied to target directory.
Add new configuration to src/templateConfigs/ and export it from index.ts. The exported name must match the directory name in templates/.

Back sync

It can be more convenient to develop template code outside of create-polkadot-dapp.
Use yarn back-sync --source <spawned_repo_path> --template <template_name> to sync files from a spawned repo back into the template.
backSyncPatterns in template configuration defines an array of regexp for files that are synced.

FAQs

Package last updated on 12 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc