Git Product home page Git Product logo

flowwow's Introduction

๐Ÿถ Flowwow

Flowwow is an NFT pet marketplace built on Flow and NFT Storage. It is intended to be a demo of how to mint and manage NFTs on the Flow blockchain, storing them in IPFS and Filecoin via the NFT.storage service. You can browse delightful pets, adopt them (transfer from marketplace to your wallet), and release them (transfer from your wallet back to the marketplace).

Prerequisites

First, make sure you install Flow CLI and sign up for a NFT.storage account to get the API token. You will also need to have Docker and Docker Compose installed.

Get Started

  1. Run the Flow chain emulator, local dev wallet, and the React app with docker-compose up

  2. Deploy the PetshopContract with flow project deploy

  3. Go to http://localhost:3000

  4. Click Login or Signup button to connect to a local dev wallet, which will let you choose an account. You can choose a separate account from the emulator (service account) or create new ones. Then, select "Activate Collection" under the dropdown menu for every new account.

  5. Try minting, adopting (transfer from marketplace to you), and releasing (transferring back to the marketplace) pet NFTs.

Features

  • Authentication
    • Local dev wallet (emulator)
    • Flow-compatible wallets (testnet)
  • Non-fungible Token
    • Account setup
    • Minting (pre-minting and user-minting)
    • Withdrawing and deposit
  • Fungible Token
    • Account setup
    • Minting
    • Withdrawing and deposit
  • Storage
    • Store images on NFT Storage
    • Store all metadata on NFT Storage (testnet or mainnet)

Interacting with CLI

It can be helpful to directly interact with the contract(s) via the Flow CLI. Try running the following in a separate terminal, while the emulator is running:

GetAllTokenIds

Get all the NFTs' IDs on the chain

flow scripts execute ./src/flow/scripts/pets/GetAllTokenIds.cdc

CheckTokenMetadata

Get the NFT's metadata from its ID

flow scripts execute ./src/flow/scripts/pets/CheckTokenMetaData.cdc <id>

MintPetToken

Mint a new NFT of your own. Check out pets.json to get the idea of the JSON string to pass as an argument. Don't forget to include the IPFS link in the uri field (or any link to an online image resource) for your NFT to show up.

flow transactions send ./src/flow/transactions/pets/MintPetToken.cdc <JSON-string-describing-a-pet>

Copyrights

Dual-licensed under MIT and Apache 2. Dog and cat photos from Unsplash.

flowwow's People

Contributors

jochasinga avatar mishmosh avatar

Watchers

James Cloos 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.