{"id":21877541,"url":"https://github.com/erabossid/code-bank","last_synced_at":"2025-03-10T14:23:31.005Z","repository":{"id":166676935,"uuid":"298638345","full_name":"erabosscode/code-bank","owner":"erabosscode","description":"This a code flashback project to retrieve codes in the memory ","archived":false,"fork":false,"pushed_at":"2020-09-27T16:29:03.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T02:22:53.435Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/erabosscode.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":"2020-09-25T17:29:17.000Z","updated_at":"2020-09-27T16:29:05.000Z","dependencies_parsed_at":"2023-06-01T15:15:35.438Z","dependency_job_id":null,"html_url":"https://github.com/erabosscode/code-bank","commit_stats":null,"previous_names":["tradecoder/code-bank","logixmaster/code-bank","mydigita/code-bank","erabossid/code-bank","erabosstt/code-bank","erabosscode/code-bank"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erabosscode%2Fcode-bank","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erabosscode%2Fcode-bank/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erabosscode%2Fcode-bank/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erabosscode%2Fcode-bank/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erabosscode","download_url":"https://codeload.github.com/erabosscode/code-bank/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242865252,"owners_count":20197858,"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-28T08:09:33.280Z","updated_at":"2025-03-10T14:23:30.980Z","avatar_url":"https://github.com/erabosscode.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# code-bank\nA simple document page to code flashback to refresh the memory whenever needed\n\n## Post data with axios\n```\nconst dataToSend = {\nfield1:'value1',\nfield2:'value2'\n}\naxios.post('url-here', dataToSend)\n.then(d=\u003ewindow.alert('submitted'))\n.catch(err=\u003ewindow.alert('submission failed'))\n```\n## Get data with axios\n```\naxios.get('url-here')\n.then(res=\u003e{\nlet data = res.data;\n// do something with data\n})\n.catch(err=\u003econsole.log(err));\n```\n\n## Update data with axios (put)\n```\nconst updateData = {\nfield1:'updated f1 value',\nfield2:'updated f2 value'\n}\n\naxios.put('url-here', updateData)\n.then(d=\u003ewindow.alert('updated'))\n.catch(err=\u003ewindow.alert('update failed'))\n```\n## Delete data with axios \n```\nconst id = 'id-to-delete....';\naxios.delete(`url-here/${id}`)\n.then(d=\u003ewindow.alert('deleted'))\n.catch(err=\u003ewindow.alert('failed'))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferabossid%2Fcode-bank","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferabossid%2Fcode-bank","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferabossid%2Fcode-bank/lists"}