create-polkadot-dapp

0.0.1 • Public • Published

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

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.

Readme

Keywords

none

Package Sidebar

Install

npm i create-polkadot-dapp

Weekly Downloads

57

Version

0.0.1

License

MIT

Unpacked Size

54.9 kB

Total Files

73

Last publish

Collaborators

  • mcornholio
  • paritytech-ci