An example of e-voting system run on solana blockchain.
- Clone the repo
git clone [email protected]:
-
Change into the project directory you'd like to run
-
Install the dependencies
npm install
- Start a local Solana node
solana-test-validator
- Build the anchor project
anchor build
- Fetch the project ID for the build:
solana address -k target/deploy/<programname>-keypair.json
Update the project ID in the Rust program located at projectname/programs/src/programname.rs with the output from above.
- Run the tests
anchor test
- Change into the app directory and install the dependencies:
cd app && npm install
-
Rename
.env.example
to.env
-
Run the client-side app
npm run dev