{"id":22097039,"url":"https://github.com/pguso/angular-hardhat-starter-dapp","last_synced_at":"2025-07-24T22:32:51.850Z","repository":{"id":43303392,"uuid":"450161903","full_name":"pguso/angular-hardhat-starter-dapp","owner":"pguso","description":"Angular + Hardhat Starter DApp. Write, compile \u0026 deploy EVM compatible smart contracts ","archived":false,"fork":false,"pushed_at":"2022-01-20T19:07:52.000Z","size":374,"stargazers_count":17,"open_issues_count":2,"forks_count":13,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-13T16:21:07.358Z","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/pguso.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}},"created_at":"2022-01-20T15:57:08.000Z","updated_at":"2024-04-01T17:45:53.000Z","dependencies_parsed_at":"2022-09-13T21:21:15.984Z","dependency_job_id":null,"html_url":"https://github.com/pguso/angular-hardhat-starter-dapp","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/pguso%2Fangular-hardhat-starter-dapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pguso%2Fangular-hardhat-starter-dapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pguso%2Fangular-hardhat-starter-dapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pguso%2Fangular-hardhat-starter-dapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pguso","download_url":"https://codeload.github.com/pguso/angular-hardhat-starter-dapp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227482455,"owners_count":17779968,"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-12-01T04:13:58.184Z","updated_at":"2024-12-01T04:13:59.203Z","avatar_url":"https://github.com/pguso.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular Starter DApp Template\n\nThis template uses following versions\n\n* Angular 13\n* Hardhat 2.8\n* Ethers 5.5\n* Solidity 0.8.4\n\n## Getting started\n\n1. Clone this repository \n\n```\ngit clone git@github.com:pguso/angular-hardhat-starter-dapp.git\n```\n\n2. Install dependencies\n\n```\nnpm install\n```\n\n3. Install Metamask (if you not already did) https://metamask.io/download/\n4. Configure Polygon in Metamask https://docs.matic.today/docs/develop/metamask/config-polygon-on-metamask/ (switch to the Mumbai-Testnet Tab)\n5. Rename .env.dist to .env and paste your Metamask private key into PRIVATE_KEY\n6. Upload the contract to the Polygon Mumbai Testnet, make sure you have enough MATIC in Metamask (you can get test MATIC from here https://faucet.polygon.technology/)\n\n```\nnpm run deploy:testnet\n```\n\n7. Paste the contract address, you get on the command line, into src/environments/environment.ts\n\n```typescript\nexport const environment = {\n  // ...\n  contractAddress: '0x04215C89a6af0f7ed9103c48BaF6A8e19f119470',\n  // ...\n};\n```\n\n8. Run angular application and test the app under http://localhost:4200\n\n```\nng serve\n```\n\n## This template has three pages\n\n### The Homepage\n\nA list of all uploaded images.\n\n### The authors page\n\nOnly images are shown on this page that are uploaded by the selected account in Metamask.\n\n### The upload form\n\nHere anybody who is connected via Metamask can upload an image with title and description. The image and the image metadata get uploaded to IPFS.\n\n## Hardhat config\n\nThe default config hardhat.config.js is configured for the Polygon Network. Here you find examples for other Blockchains.\n\n### Binance Smart Chain\n\n```javascript\nrequire('@nomiclabs/hardhat-waffle')\nrequire('dotenv').config()\n\nconst privateKey = process.env.PRIVATE_KEY\n\nmodule.exports = {\n  networks: {\n    hardhat: {\n      chainId: 1337,\n    },\n    testnet: {\n      url: 'https://data-seed-prebsc-1-s1.binance.org:8545',\n      chainId: 97,\n      gasPrice: 20000000000,\n      accounts: [privateKey],\n    },\n    mainnet: {\n      url: 'https://bsc-dataseed.binance.org/',\n      chainId: 56,\n      gasPrice: 20000000000,\n      accounts: [privateKey],\n    },\n  },\n  solidity: '0.8.4',\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpguso%2Fangular-hardhat-starter-dapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpguso%2Fangular-hardhat-starter-dapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpguso%2Fangular-hardhat-starter-dapp/lists"}