Giter VIP home page Giter VIP logo

anhfactor / pokenft Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 2.0 24.21 MB

This project of a Pokémon Trading Card Game using ERC 721 Non-Fungible Tokens. A special token is rewarded to a lucky user using on-chain verifiable random functions. The project i am working on hackathon Ceramic Sovereign Data Hackathon Bounty.

Home Page: https://poke-nft.vercel.app/

License: MIT License

JavaScript 94.00% Solidity 3.65% HTML 2.11% CSS 0.25%
ceramic chainlink hackathon nft erc721 react smartcontract idx 3id-did solidity

pokenft's Introduction

Poke NFT

Buy Me A Coffee

This project of a Pokémon Trading Card Game using ERC 721 Non-Fungible Tokens. A special token is rewarded to a lucky user using on-chain verifiable random functions. The project i am working on hackathon Ceramic Sovereign Data Hackathon Bounty I use:

The NFTs were created following this guide. The random number generator used to mint the special tokens was created using this Chainlink VRF tutorial. The authenticate, i am using Decentralized Identity from Ceramic called 3ID 3ID DID Method and save profile using IDX IDX documentation

Wanna see this project live? Try it out.

Video demo: Youtube link

*Notes: The project running on Kovan testnet.

Quick start

The first things you need to do are cloning this repository and installing its dependencies:

git clone https://github.com/anhnt4288/pokeNFT.git
cd pokeNFT
npm install

Before deploying your contract you have to copy the .env_example to .env and set the credentials in your .env file

Then, on a new terminal, go to the repository's root folder and run this to deploy PokeToken contract:

npx buidler run scripts/deploy_PokeToken.js --network kovan

Finally, we can run the frontend with:

cd frontend
npm install
npm start

Open http://localhost:3000/ to see your Dapp. You will need to have Metamask installed and listening to the Kovan network.

What’s Included?

Your environment will have everything you need to build a Dapp powered by Buidler and React.

API

Additional information about Chainlink and the database for the metadata API is available in the docs section. There is also an article on Medium.

Troubleshooting

  • Invalid nonce errors: if you are seeing this error on the buidler node console, try resetting your Metamask account. This will reset the account's transaction history and also the nonce. Open Metamask, click on your account followed by Settings > Advanced > Reset Account.

Special credits

151 pokemon of Kanto icon set by Geovanny Gavilanes

Pikachu by Mohammad Ali

Pokemon icons by roundicons.com

Restful API Poke content

Future feature

  • Trade poke NFT cards.
  • PVP with others player.

pokenft's People

Contributors

anhfactor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.