{"id":18389740,"url":"https://github.com/danielwpz/guest-book","last_synced_at":"2025-04-12T06:30:14.341Z","repository":{"id":38081622,"uuid":"379606641","full_name":"danielwpz/guest-book","owner":"danielwpz","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-26T16:15:53.000Z","size":4777,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T01:13:32.374Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/danielwpz.png","metadata":{"files":{"readme":"README-Gitpod.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}},"created_at":"2021-06-23T13:08:30.000Z","updated_at":"2021-06-23T13:16:11.000Z","dependencies_parsed_at":"2023-02-14T19:32:15.177Z","dependency_job_id":null,"html_url":"https://github.com/danielwpz/guest-book","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwpz%2Fguest-book","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwpz%2Fguest-book/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwpz%2Fguest-book/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwpz%2Fguest-book/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielwpz","download_url":"https://codeload.github.com/danielwpz/guest-book/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248528988,"owners_count":21119416,"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-06T01:44:18.655Z","updated_at":"2025-04-12T06:30:14.309Z","avatar_url":"https://github.com/danielwpz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Guest Book - Gitpod version\n===========================\n\nSign in with [NEAR] and add a message to the guest book! A starter app built with an [AssemblyScript] backend and a [React] frontend.\n\nThis README is specific to Gitpod and this example. For local development, please see [README.md](README.md).\n\nExploring The Code\n==================\n\n1. The backend code lives in the `/assembly` folder. This code gets deployed to\n   the NEAR blockchain when you run `yarn deploy:contract`. This sort of\n   code-that-runs-on-a-blockchain is called a \"smart contract\" – [learn more\n   about NEAR smart contracts][smart contract docs].\n2. The frontend code lives in the `/src` folder.\n   [/src/index.html](/src/index.html) is a great place to start exploring. Note\n   that it loads in `/src/index.js`, where you can learn how the frontend\n   connects to the NEAR blockchain.\n3. Tests: there are different kinds of tests for the frontend and backend. The\n   backend code gets tested with the [asp] command for running the backend\n   AssemblyScript tests, and [jest] for running frontend tests. You can run\n   both of these at once with `yarn test`.\n\nBoth contract and client-side code will auto-reload as you change source files.\n\n\nUsing\n======\n\nGitpod has taken care of installing all the necessary tools and dependencies. At the bottom of Gitpod is a terminal which will display a link to follow:\n\n\n    Server running at http://localhost:1234\n\n\nA small dialog appears showing options similar to this:\n\n![A Gitpod dialog box saying 'A service is available on port 1234' and giving options to 'Open Preview' or 'Open Browser'](assets/gitpod-port-1234.jpg)\n\nThe \"Open Preview\" option will open the site in a tab within the IDE. Note that Gitpod may need a little time to spin up the website. It's possible this step might require reloading after a brief pause.\n\nThe \"Open Browser\" option will open a new tab in your browser. Either option will work and is up to your preference.\n\nOnce you've opened the web app in your browser, log in and experiment with the simple \"guest book\" smart contract.\n\nThe \"Save\" button sends the text input to the blockchain, storing it as a string. The web app will reload with the new guest book messages automatically.\n\nThe \"Save \u0026 Donate\" button demonstrates attaching NEAR and a gas price when calling the smart contract's method `addMessage`. When the web app refreshes with \"paid\" messages, the user interface highlights them.\n\nData collection\n===============\nBy using Gitpod in this project, you agree to opt-in to basic, anonymous analytics. No personal information is transmitted. Instead, these usage statistics aid in discovering potential bugs and user flow information.\n\n  [smart contract docs]: https://docs.nearprotocol.com/docs/roles/developer/contracts/assemblyscript\n  [asp]: https://www.npmjs.com/package/@as-pect/cli\n  [jest]: https://jestjs.io/\n  [NEAR]: https://nearprotocol.com/\n  [AssemblyScript]: https://docs.assemblyscript.org/\n  [React]: https://reactjs.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielwpz%2Fguest-book","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielwpz%2Fguest-book","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielwpz%2Fguest-book/lists"}