⚡ Bangun dan berlari cepat dengan Solana Dapps ⚡
Cukup jalankan satu perintah sederhana untuk menghasilkan proyek baru!
npx create-solana-dapp@latest Templat didukung dalam create-solana-dapp :
Anda juga dapat menggunakan create-solana-dapp untuk membuat proyek menggunakan template eksternal:
Bendera --template (atau -t ) mendukung apa pun yang didukung Giget
pnpx create-solana-dapp --template < github-org > / < github-repo > Penulis template dapat menambahkan skrip init ke file package.json untuk membantu mengatur proyek.
Gunakan skrip ini untuk mengembalikan instruksi kepada pengguna, periksa versi anchor dan solana , dan ganti teks dan file dalam proyek.
{
"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" ,
} ,
} ,
}Kerangka kerja UI berikut direncanakan dan diharapkan akan didukung di masa depan:
Kerangka kerja program On-Chain berikut (AKA Smart Contracts) didukung dalam create-solana-dapp :
Kontribusi dipersilakan! Silakan lihat Contributing.md untuk info lebih lanjut.
[! Tip] Proyek ini menggunakan PNPM sebagai manajer paket. Jika Anda tidak memilikinya, Anda dapat menginstalnya menggunakan
corepack:corepack enable corepack prepare pnpm@9 --activate
Untuk menginstal proyek secara lokal, jalankan perintah berikut:
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.