To build and test any project after cloning the repository, follow these steps:
- Navigate to the project directory:
cd project_name
- Install the necessary dependencies:
npm i
- Build the project:
anchor build
- Test the project:
anchor test
- Deploy locally:
To deploy the project locally, first run the Solana test validator:
solana-test-validator
Then deploy the project:
anchor deploy --provider.cluster localnet