{"id":25070724,"url":"https://github.com/eroydev/anchor-votingdapp","last_synced_at":"2025-03-31T16:26:50.813Z","repository":{"id":275040723,"uuid":"924670270","full_name":"ERoydev/Anchor-votingdapp","owner":"ERoydev","description":"Smart Contract build on Solana Anchor Framework","archived":false,"fork":false,"pushed_at":"2025-02-21T23:46:21.000Z","size":388,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T00:26:42.395Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ERoydev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-30T12:46:32.000Z","updated_at":"2025-02-21T23:46:25.000Z","dependencies_parsed_at":"2025-01-30T21:22:38.510Z","dependency_job_id":"63ce5d80-9e70-4bc8-ba2c-69d3804aefd7","html_url":"https://github.com/ERoydev/Anchor-votingdapp","commit_stats":null,"previous_names":["eroydev/anchor-votingdapp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ERoydev%2FAnchor-votingdapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ERoydev%2FAnchor-votingdapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ERoydev%2FAnchor-votingdapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ERoydev%2FAnchor-votingdapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ERoydev","download_url":"https://codeload.github.com/ERoydev/Anchor-votingdapp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246498146,"owners_count":20787266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-06T21:34:00.633Z","updated_at":"2025-03-31T16:26:50.806Z","avatar_url":"https://github.com/ERoydev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# voting-dapp\n\n## Getting Started\n\n### Prerequisites\n\n- Node v18.18.0 or higher\n\n- Rust v1.77.2 or higher\n- Anchor CLI 0.30.1 or higher\n- Solana CLI 1.18.17 or higher\n\n### Installation\n\n\n#### Clone the repo\n\n```shell\ngit clone \u003crepo-url\u003e\ncd \u003crepo-name\u003e\n```\n\n#### Install Dependencies\n\n```shell\npnpm install\n```\n\n#### Start the web app\n\n```\npnpm dev\n```\n\n## Apps\n\n### anchor\n\nThis is a Solana program written in Rust using the Anchor framework.\n\n#### Commands\n\nYou can use any normal anchor commands. Either move to the `anchor` directory and run the `anchor` command or prefix the command with `pnpm`, eg: `pnpm anchor`.\n\n#### Sync the program id:\n\nRunning this command will create a new keypair in the `anchor/target/deploy` directory and save the address to the Anchor config file and update the `declare_id!` macro in the `./src/lib.rs` file of the program.\n\nYou will manually need to update the constant in `anchor/lib/counter-exports.ts` to match the new program id.\n\n```shell\npnpm anchor keys sync\n```\n\n#### Build the program:\n\n```shell\npnpm anchor-build\n```\n\n#### Start the test validator with the program deployed:\n\n```shell\npnpm anchor-localnet\n```\n\n#### Run the tests\n\n```shell\npnpm anchor-test\n```\n\n#### Deploy to Devnet\n\n```shell\npnpm anchor deploy --provider.cluster devnet\n```\n\n### web\n\nThis is a React app that uses the Anchor generated client to interact with the Solana program.\n\n#### Commands\n\nStart the web app\n\n```shell\npnpm dev\n```\n\nBuild the web app\n\n```shell\npnpm build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feroydev%2Fanchor-votingdapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feroydev%2Fanchor-votingdapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feroydev%2Fanchor-votingdapp/lists"}