Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Latest commit

 

History

History

07_create_dapp_cli

🛹 Demo 7: Example with create-dapp-cli


1. Creating a New Project


  • A new project can be generated with:

npx create-solana-dapp@latest

  • Install dependencies:

npm install


2. Syncing the program id


  • Run the following to create a new key pair inside ./anchor/target/deploy:

npm run anchor keys sync


3. Building the Program


npm run anchor-build


4. Running Tests


npm run anchor-test


5. Building the dApp


npm run build


6. Starting the dApp


npm run dev


7. Deploying the dApp


  • Start the validator in another window with solana-test-validator, and then run:

npm run anchor deploy