create solana dapp
1.0.0
solana dappsで早く起きて走る
1つの簡単なコマンドを実行して、新しいプロジェクトを生成してください!
npx create-solana-dapp@latestテンプレートはcreate-solana-dapp内でサポートされています。
create-solana-dappを使用して、外部テンプレートを使用してプロジェクトを作成することもできます。
--template (または-t )フラグは、Gigetがサポートするものをすべてサポートします
pnpx create-solana-dapp --template < github-org > / < github-repo > テンプレートの著者は、 package.jsonファイルにinitスクリプトを追加して、プロジェクトのセットアップを支援できます。
このスクリプトを使用して、ユーザーに手順を返し、 anchorとsolanaバージョンを確認し、プロジェクト内のテキストとファイルを置き換えます。
{
"name" : "your-template" ,
"create-solana-dapp" : {
// These instructions will be returned to the user after installation
"instructions" : [
"Run Anchor commands:" ,
// Adding a '+' will make the line bold and '{pm}' is replaced with the package manager
"+{pm} run anchor build | test | localnet | deploy" ,
] ,
// Rename is a map of terms to rename
"rename" : {
// Rename every instance of counter
"counter" : {
// With the name of the project
"to" : "{{name}}" ,
// In the following paths
"paths" : [ "anchor" , "src" ] ,
} ,
} ,
// Check versions and give a warning if it's not installed or the version is lower
"versions" : {
"anchor" : "0.30.1" ,
"solana" : "1.18.0" ,
} ,
} ,
}次のUIフレームワークは計画され、将来的にはサポートされる予定です。
次のオンチェーンプログラム(別名スマートコントラクト)フレームワークはcreate-solana-dapp内でサポートされています。
貢献は大歓迎です!詳細については、Converting.mdをご覧ください。
[!TIP]このプロジェクトは、PNPMをパッケージマネージャーとして使用しています。持っていない場合は、
corepackを使用してインストールできます。corepack enable corepack prepare pnpm@9 --activate
プロジェクトをローカルにインストールするには、次のコマンドを実行します。
git clone https://github.com/solana-developers/create-solana-dapp.git
cd create-solana-dapp
pnpm install
pnpm build
Detailed instructions on the local development workflow are outlined in the
[Development Workflow](./CONTRIBUTING.md#development-workflow) section of the CONTRIBUTING guidelines.