⚡ลุกขึ้นและวิ่งอย่างรวดเร็วด้วย solana dapps ⚡
เพียงเรียกใช้หนึ่งคำสั่งง่ายๆเพื่อสร้างโครงการใหม่!
npx create-solana-dapp@latest เทมเพลตได้รับการสนับสนุนภายใน create-solana-dapp :
คุณยังสามารถใช้ create-solana-dapp เพื่อสร้างโครงการโดยใช้เทมเพลตภายนอก:
ธง --template (หรือ -t ) รองรับทุกสิ่งที่ Giget รองรับ
pnpx create-solana-dapp --template < github-org > / < github-repo > ผู้เขียนเทมเพลตสามารถเพิ่มสคริปต์ init ลงในไฟล์ package.json เพื่อช่วยตั้งค่าโครงการ
ใช้สคริปต์นี้เพื่อส่งคืนคำแนะนำไปยังผู้ใช้ตรวจสอบเวอร์ชัน 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 ต่อไปนี้มีการวางแผนและคาดว่าจะได้รับการสนับสนุนในอนาคต:
เฟรมเวิร์กโปรแกรมบนห่วงโซ่ต่อไปนี้ (AKA Smart Contracts) ได้รับการสนับสนุนภายใน create-solana-dapp :
ยินดีต้อนรับ! โปรดดูข้อมูลเพิ่มเติมสำหรับข้อมูลเพิ่มเติม
[! เคล็ดลับ] โครงการนี้ใช้ 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.