{"id":19977138,"url":"https://github.com/adrianhajdin/project_web3_battle_game","last_synced_at":"2025-04-05T11:09:22.733Z","repository":{"id":62254133,"uuid":"554726122","full_name":"adrianhajdin/project_web3_battle_game","owner":"adrianhajdin","description":"With a stunning design, interactive gameplay, smart wallet pairing, live interaction with smart contracts, and, most importantly, the ability to battle other players in real-time, AvaxGods is the best and the only Web3 battle-style online multiplayer card game that you can currently find on YouTube.","archived":false,"fork":false,"pushed_at":"2022-10-29T08:07:18.000Z","size":16115,"stargazers_count":461,"open_issues_count":10,"forks_count":163,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-29T10:06:31.465Z","etag":null,"topics":["avalanche","blockchain","nft","solidity","web3"],"latest_commit_sha":null,"homepage":"https://jsmastery.pro","language":"JavaScript","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/adrianhajdin.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}},"created_at":"2022-10-20T09:35:57.000Z","updated_at":"2025-03-24T10:01:37.000Z","dependencies_parsed_at":"2022-10-29T09:00:55.907Z","dependency_job_id":null,"html_url":"https://github.com/adrianhajdin/project_web3_battle_game","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/adrianhajdin%2Fproject_web3_battle_game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianhajdin%2Fproject_web3_battle_game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianhajdin%2Fproject_web3_battle_game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianhajdin%2Fproject_web3_battle_game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrianhajdin","download_url":"https://codeload.github.com/adrianhajdin/project_web3_battle_game/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247325693,"owners_count":20920714,"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":["avalanche","blockchain","nft","solidity","web3"],"created_at":"2024-11-13T03:27:00.154Z","updated_at":"2025-04-05T11:09:22.701Z","avatar_url":"https://github.com/adrianhajdin.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Avax Gods - Online Multiplayer Web3 NFT Card Game\n![Gameplay](https://i.ibb.co/4P2C08x/image.png)\n\n### Launch your development career with project-based coaching on [JS Mastery Pro](https://www.jsmastery.pro).\n\n## Instructions on setting up the Web3 part of the project\n0. `cd web3`\n1. `npx hardhat` -\u003e y → typescript → enter → enter\n2. `npm install @openzeppelin/contracts dotenv @nomiclabs/hardhat-ethers` + Hardhat packages `npm install --save-dev \"hardhat@^2.12.0\" \"@nomicfoundation/hardhat-toolbox@^2.0.0\"`\n3. Install [Core](https://chrome.google.com/webstore/detail/core/agoakfejjabomempkjlepdflaleeobhb), a Metamask smart wallet alternative built for Avalanche dApps\n  1. Turn on the testnet mode by: opening up the Core extension -\u003e click the hamburger menu on the top left -\u003e go to advanced -\u003e turn on the testnet mode\n4. Fund your wallet from the [Avax Faucet](https://faucet.avax.network/)\n5. Create a `.env` file and specify a PRIVATE_KEY variable.\n6. To get to the private key, do the following steps:\n  1. Open up the Core extension -\u003e click the hamburger menu on the top left -\u003e go to security and privacy -\u003e click show recovery phase -\u003e enter your password -\u003e copy the phrase -\u003e go to [wallet.avax.network](https://wallet.avax.network/) -\u003e click access wallet -\u003e choose mnemonic key phrase -\u003e paste what the words we’ve copied from Core -\u003e on the sidebar click manage keys -\u003e view c-chain private key -\u003e copy -\u003e paste it in the .env file\n7. Copy the `hardhat.config.ts` file from the GitHub gist down in the description\n8. Copy the `deploy.ts` script from the GitHub gist down in the description\n9. Copy the `AvaxGods.sol` smart contract code from the GitHub gist down in the description\n10. Compile the contract by running the `npx hardhat compile` command\n11. Deploy the smart contract on the Fuji test network by running the `npx hardhat run scripts/deploy.ts --network fuji` command\n  Move the `/artifacts/contracts/AVAXGods.json` file to the `/contract` folder on the frontend\n  Copy the address of the deployed contract from the terminal and paste it into the `/contract/index.js` file of the frontend application\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianhajdin%2Fproject_web3_battle_game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrianhajdin%2Fproject_web3_battle_game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianhajdin%2Fproject_web3_battle_game/lists"}