⚡ Levántate rápidamente con Solana Dapps ⚡
¡Simplemente ejecute un comando simple para generar un nuevo proyecto!
npx create-solana-dapp@latest Las plantillas son compatibles con create-solana-dapp :
También puede usar create-solana-dapp para crear proyectos utilizando plantillas externas:
La bandera --template (o -t ) admite cualquier cosa que Giget admita
pnpx create-solana-dapp --template < github-org > / < github-repo > Los autores de la plantilla pueden agregar un script init al archivo package.json para ayudar a configurar el proyecto.
Use este script para devolver las instrucciones al usuario, verifique las versiones anchor y solana , y reemplace el texto y los archivos en el proyecto.
{
"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" ,
} ,
} ,
}Se planifican los siguientes marcos de UI y se espera que sean compatibles en el futuro:
Los siguientes marcos de programas en la cadena (también conocidos como contratos inteligentes) son compatibles con create-solana-dapp :
¡Las contribuciones son bienvenidas! Consulte Contriping.MD para obtener más información.
[! Tip] Este proyecto usa PNPM como Administrador de paquetes. Si no lo tiene, puede instalarlo usando
corepack:corepack enable corepack prepare pnpm@9 --activate
Para instalar el proyecto localmente, ejecute los siguientes comandos:
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.