{"id":26155348,"url":"https://github.com/thanhlmm/near-idea","last_synced_at":"2025-07-11T08:11:09.818Z","repository":{"id":88601639,"uuid":"368199170","full_name":"thanhlmm/near-idea","owner":"thanhlmm","description":"Demo App - Near💡 Idea is a place to get community idea with bounty built by Near block-chain technology","archived":false,"fork":false,"pushed_at":"2021-06-09T10:35:27.000Z","size":4293,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T07:47:42.117Z","etag":null,"topics":["blockchain","frontend","nearprotocol","testnet"],"latest_commit_sha":null,"homepage":"https://near-idea.vercel.app","language":"TypeScript","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/thanhlmm.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":"2021-05-17T13:39:08.000Z","updated_at":"2024-08-14T15:08:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"9cdad5e5-2aa6-4de1-adcd-f7b962b3b8b1","html_url":"https://github.com/thanhlmm/near-idea","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thanhlmm/near-idea","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanhlmm%2Fnear-idea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanhlmm%2Fnear-idea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanhlmm%2Fnear-idea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanhlmm%2Fnear-idea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thanhlmm","download_url":"https://codeload.github.com/thanhlmm/near-idea/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanhlmm%2Fnear-idea/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264763557,"owners_count":23660317,"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":["blockchain","frontend","nearprotocol","testnet"],"created_at":"2025-03-11T08:53:13.113Z","updated_at":"2025-07-11T08:11:09.788Z","avatar_url":"https://github.com/thanhlmm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# near-idea\n\n## WTF is Near idea\n\n![Near idea](./concept.png)\n\n# Quick Start\n\nTo run this project locally:\n\n1. Prerequisites: Make sure you've installed [Node.js] ≥ 12\n2. Install dependencies: `yarn install`\n3. Run the local development server: `yarn dev` (see `package.json` for a\n   full list of `scripts` you can run with `yarn`)\n\nNow you'll have a local development environment backed by the NEAR TestNet!\n\nGo ahead and play with the app and the code. As you make code changes, the app will automatically reload.\n\n# Exploring The Code\n\n1. The \"backend\" code lives in the `/contract` folder. See the README there for\n   more info.\n2. The frontend code lives in the `/src` folder. `/src/index.html` is a great\n   place to start exploring. Note that it loads in `/src/index.js`, where you\n   can learn how the frontend connects to the NEAR blockchain.\n3. Tests: there are different kinds of tests for the frontend and the smart\n   contract. See `contract/README` for info about how it's tested. The frontend\n   code gets tested with [jest]. You can run both of these at once with `yarn run test`.\n\n# Deploy\n\nEvery smart contract in NEAR has its [own associated account][near accounts]. When you run `yarn dev`, your smart contract gets deployed to the live NEAR TestNet with a throwaway account. When you're ready to make it permanent, here's how.\n\n## Step 0: Install near-cli (optional)\n\n[near-cli] is a command line interface (CLI) for interacting with the NEAR blockchain. It was installed to the local `node_modules` folder when you ran `yarn install`, but for best ergonomics you may want to install it globally:\n\n    yarn install --global near-cli\n\nOr, if you'd rather use the locally-installed version, you can prefix all `near` commands with `npx`\n\nEnsure that it's installed with `near --version` (or `npx near --version`)\n\n## Step 1: Create an account for the contract\n\nEach account on NEAR can have at most one contract deployed to it. If you've already created an account such as `your-name.testnet`, you can deploy your contract to `near-idea.your-name.testnet`. Assuming you've already created an account on [NEAR Wallet], here's how to create `near-idea.your-name.testnet`:\n\n1. Authorize NEAR CLI, following the commands it gives you:\n\n   near login\n\n2. Create a subaccount (replace `YOUR-NAME` below with your actual account name):\n\n   near create-account near-idea.YOUR-NAME.testnet --masterAccount YOUR-NAME.testnet\n\n## Step 2: set contract name in code\n\nModify the line in `src/config.js` that sets the account name of the contract. Set it to the account id you used above.\n\n    const CONTRACT_NAME = process.env.CONTRACT_NAME || 'near-idea.YOUR-NAME.testnet'\n\n## Step 3: deploy!\n\nOne command:\n\n    yarn deploy\n\nAs you can see in `package.json`, this does two things:\n\n1. builds \u0026 deploys smart contract to NEAR TestNet\n2. builds \u0026 deploys frontend code to GitHub using [gh-pages]. This will only work if the project already has a repository set up on GitHub. Feel free to modify the `deploy` script in `package.json` to deploy elsewhere.\n\n# Troubleshooting\n\nOn Windows, if you're seeing an error containing `EPERM` it may be related to spaces in your path. Please see [this issue](https://github.com/zkat/npx/issues/209) for more details.\n\n[create-near-app]: https://github.com/near/create-near-app\n[node.js]: https://nodejs.org/en/download/package-manager/\n[jest]: https://jestjs.io/\n[near accounts]: https://docs.near.org/docs/concepts/account\n[near wallet]: https://wallet.testnet.near.org/\n[near-cli]: https://github.com/near/near-cli\n[gh-pages]: https://github.com/tschaub/gh-pages\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthanhlmm%2Fnear-idea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthanhlmm%2Fnear-idea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthanhlmm%2Fnear-idea/lists"}