First setup system requirements using this blog post-> blog_link
-
Node.js - I recommend installing Node using either node
-
Solana Tool Suite - You can see the installation instructions here.
-
Anchor - Anchor installation was pretty straight-forward for me. You can find the installation instructions here.
- Clone the repo
git clone git@github.com:shivamsoni00/flipcpi.git
-
Change into the project directory you'd like to run
-
Install the dependencies
npm install
npm i -g yarn
-
set your wallet keypair path in
anchor.toml
file -
Start a local Solana node
solana-test-validator
- Build the anchor project
anchor build
- Fetch the project ID for the build:
anchor deploy
- Update the project ID in the solidity program and anchor.toml file and run command.
anchor build
- Run the tests
anchor test