- Navigate to the project directory
- Run
npm install
to install the required dependencies - Generate a new wallet:
solana-keygen new -o id.json
- Copy the address of the new wallet:
solana-keygen pubkey id.json
- Airdrop some SOL into your new wallet:
solana airdrop 2 $(solana-keygen pubkey ./id.json) --url devnet && solana airdrop 2 $(solana-keygen pubkey ./id.json) --url devnet
- Build the program:
anchor build
- Copy the new program ID from
solana address -k ./target/deploy/crowdfunding.json
, and replace the existing program ID in lib.rs and Anchor.toml - Run
anchor deploy
- Navigate to the project directory
- Run
cd frontend
- Run
npm install
to install the required dependencies - Run
npm run start