{"id":21870020,"url":"https://github.com/solana-developers/crud-dapp","last_synced_at":"2025-04-14T23:42:35.007Z","repository":{"id":232292723,"uuid":"783958432","full_name":"solana-developers/CRUD-dApp","owner":"solana-developers","description":"An example of a CRUD dApp on the solana blockchain. ","archived":false,"fork":false,"pushed_at":"2024-07-22T19:44:35.000Z","size":501,"stargazers_count":26,"open_issues_count":3,"forks_count":13,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T23:42:28.847Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/solana-developers.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":"2024-04-08T23:02:38.000Z","updated_at":"2025-03-10T22:35:40.000Z","dependencies_parsed_at":"2024-04-09T00:40:56.207Z","dependency_job_id":"0cba2dc3-4ff3-4033-addb-ca2f7f1f4ffa","html_url":"https://github.com/solana-developers/CRUD-dApp","commit_stats":null,"previous_names":["solana-foundation/crud-dapp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solana-developers%2FCRUD-dApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solana-developers%2FCRUD-dApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solana-developers%2FCRUD-dApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solana-developers%2FCRUD-dApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solana-developers","download_url":"https://codeload.github.com/solana-developers/CRUD-dApp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248981259,"owners_count":21193143,"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":"2024-11-28T06:09:58.767Z","updated_at":"2025-04-14T23:42:34.990Z","avatar_url":"https://github.com/solana-developers.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic CRUD app \nThis is an example of an on-chain CRUD dapp. This example is a journal dapp where you can create, read, update, and delete journal entries on the solana blockchain and interact with the solana program via a UI. \n\nTest it out here: [solana-journal-eight.vercel.app](solana-journal-eight.vercel.app)\n\nThis project was created using the [create-solana-dapp](https://github.com/solana-developers/create-solana-dapp) generator.\n\n## Getting Started\n\n### Prerequisites\n\n- Node v18.18.0 or higher\n- Rust v1.70.0 or higher\n- Anchor CLI 0.29.0 or higher\n- Solana CLI 1.17.0 or higher\n\n### Installation\n\n#### Clone repo\n\n```shell\ngit clone \u003crepo-url\u003e\ncd \u003crepo-name\u003e\n```\n\n#### Install dependencies\n\n```shell\nnpm install\n```\n\n#### Start the web app\n\n```\nnpm run dev\n```\n\n## Apps\n\n### Anchor\n\nThis is a Solana program written in Rust using the Anchor framework.\n\nNote: The solana program code for the journal dapp can be found in `anchor/programs/src/lib.rs`\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 `npm run`, eg: `npm run 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\nnpm run anchor keys sync\n```\n\n#### Build the program:\n\n```shell\nnpm run anchor-build\n```\n\n#### Start the test validator with the program deployed:\n\n```shell\nnpm run anchor-localnet\n```\n\n#### Run the tests\n\n```shell\nnpm run anchor-test\n```\n\n#### Deploy to Devnet\n\n```shell\nnpm run 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\nnpm run dev\n```\n\nBuild the web app\n\n```shell\nnpm run build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolana-developers%2Fcrud-dapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolana-developers%2Fcrud-dapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolana-developers%2Fcrud-dapp/lists"}