{"id":30081765,"url":"https://github.com/ajay-develops/web-3-notes","last_synced_at":"2026-02-12T18:03:05.550Z","repository":{"id":167802671,"uuid":"637355769","full_name":"ajay-develops/web-3-notes","owner":"ajay-develops","description":"useful notes to revise web03","archived":false,"fork":false,"pushed_at":"2023-05-08T17:59:35.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-03T14:47:58.410Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ajay-develops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-05-07T09:57:23.000Z","updated_at":"2023-05-07T09:57:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"bbb46048-6e08-487c-b04c-3701a4dcd1dd","html_url":"https://github.com/ajay-develops/web-3-notes","commit_stats":null,"previous_names":["templar-ajay/web-3-notes","ajay-develops/web-3-notes"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ajay-develops/web-3-notes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajay-develops%2Fweb-3-notes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajay-develops%2Fweb-3-notes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajay-develops%2Fweb-3-notes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajay-develops%2Fweb-3-notes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajay-develops","download_url":"https://codeload.github.com/ajay-develops/web-3-notes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajay-develops%2Fweb-3-notes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29375626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-08-08T20:17:31.314Z","updated_at":"2026-02-12T18:03:05.534Z","avatar_url":"https://github.com/ajay-develops.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# web-3-notes\nuseful notes to revise web03\n\n\n## install dfx version 0.9.3\n```bash\nDFX_VERSION=0.9.3 sh -ci \"$(curl -fsSL https://sdk.dfinity.org/install.sh)\"\n```\n\n## create new project\n```bash\n# project-name = hello\ndfx new hello\n```\nthen\n```bash\nnpm install\n```\nthen\n```bash\ndfx start\n```\n*split terminal*\n```bash\ndfx deploy\n```\nthen \n```bash\nnpm start\n```\n\n## Motoko language \n\n- comments are same as js //\n- let keyword is used to declare constant in motoko\n- var keyword is used to declare variable in motoko\n- := is used to reassign the value to a mutable variable.\n```motoko\n// import the debug module to access console functionality \nimport Debug \"mo:base/Debug\";\n\n// declare class with name DBank\nactor DBank{\n  // variables declared with var are mutable\n  var currentBalance  = 300;\n  currentBalance :=100;\n\n  // variables declared with let are immutable\n  let id = \"0001\"; // let means the value is constant in motoko.\n  // id := 932 // cannot reassign an immutable variable.\n  \n  Debug.print(\"Jai Shree Ram\");\n  // to print a variable use debug_show() in Debug.print\n  Debug.print(debug_show(currentBalance));\n  Debug.print(debug_show(\"your id is \",id));\n}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajay-develops%2Fweb-3-notes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajay-develops%2Fweb-3-notes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajay-develops%2Fweb-3-notes/lists"}