Smart contract for Solana Curriculum in freeCodeCampWeb3.
- Update your Solana CLI, rustup and npm package to the latest version
solana-install update
rustup update stable
npm install npm@latest -g
- Set configuration to use localhost as cluster
solana config set --url localhost
- Clone the repository
git clone https://github.com/ChiefWoods/smart-contract.git
- Install all dependencies
cargo fetch
npm install
- In another terminal, start local cluster
solana-test-validator
- Create keypair
solana-keygen new -o wallet.json
- Set keypair for config
solana config set --keypair wallet.json
- Build program
npm run build
- Deploy program to localnet
npm run deploy
View the open issues for a full list of proposed features and known bugs.