Giter Club home page Giter Club logo

cw3d-nft-explorer's Introduction

NFT Explorer CW3D Template

This NFT Explorer dapp is set up to be created using the create-web3-dapp npx package. image

Resources

Please refer to CW3D's documentation and the following useful links for an in depth explanation of how to work with projects bootstrapped with CW3D:

  • Docs - Everything you need to know when using CW3D
  • GitHub - look at the extensive code example or start contributing
  • Website - Learn more about CW3D and add components to your project
  • Templates - Check out the pre-built project templates
  • Components Library - Add features directly to your project through components
  • Examples - See the components implemented in a real world dapp
  • Community - Meet other builders, get support, and give feedback!

Overview

This project contains a fully fledged Next.js based NFT Explorer capable of fetching nfts by:

  • Collections
  • External and connected wallet

Across all EVM compatible chains.

Created using Create Web3 Dapp. It is , providing you with a seamless way to get your dApp up and running in no time.

This boilerplate is built using CW3D (Create Web3 Dapp), a powerful tool developed by Alchemy that allows developers to rapidly create and deploy dApps.

What's Included?

This boilerplate has everything you need to start building a dapp:

  • Next.js
  • Wagmi Hooks
  • Ethers.js
  • Rainbowkit
  • Alchemy SDK

Supported Chains

The project supports all the major EVM chains:

  • Ethereum
  • Polygon
  • Arbitrum
  • Optimism

Getting Started

Prerequisites

To get started with this boilerplate, you'll need to have the following software installed on your local machine:

Installation

  1. Run create web3 dapp in your terminal and select the NFT Explorer template:
  npx create-web3-dapp@latest 
  1. Navigate to the project directory:
    cd my-create-web3-dapp
    

Navigate to thedocs to learn more about using cw3d to spin up your web3 applications

Running the Project

  1. Inside the project folder, start the local development server:
    yarn run dev
    
  2. Open your browser and navigate to http://localhost:3000/ to view the dApp in action.

Project Structure

The boilerplate consists of one root directory:

📦root
 ┣ 📂components
 ┃ ┣ 📂navigation
 ┃ ┃ ┗ 📜navbar.jsx
 ┃ ┗ 📜nftGallery.jsx
 ┣ 📂layout
 ┃ ┗ 📜mainLayout.jsx
 ┣ 📂pages
 ┃ ┣ 📂api
 ┃ ┃ ┣ 📜getNftsForCollection.js
 ┃ ┃ ┗ 📜getNftsForOwner.js
 ┃ ┣ 📜_app.js
 ┃ ┗ 📜index.jsx
 ┣ 📂public
 ┃ ┗ 📜alchemy_logo.svg
 ┣ 📂styles
 ┃ ┣ 📜Home.module.css
 ┃ ┣ 📜Navbar.module.css
 ┃ ┣ 📜NftGallery.module.css
 ┃ ┗ 📜globals.css
 ┣ 📜.env.local
 ┣ 📜.gitignore
 ┣ 📜README.md
 ┣ 📜package-lock.json
 ┗ 📜package.json

Start editing the pages/index.jsx file in the root directory to customize the project according to your own needs!

cw3d-nft-explorer's People

Contributors

alvaroluken avatar danielschwartz4 avatar eversmile12 avatar xscottxbrownx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cw3d-nft-explorer's Issues

[ENHANCEMENT] - Format the token balance

token balance can show as scientific notation (see photos):
Screenshot 2023-03-17 at 4 18 53 PM
Screenshot 2023-03-17 at 4 20 05 PM

Suggest to change output to be based on user's default locale (see photos for mine {US based user}):
Screenshot 2023-03-17 at 4 27 04 PM

There would need to be some sort of maximum though, as it can cause issues (see photo):
Screenshot 2023-03-17 at 4 27 40 PM

[ENHANCEMENT] - Make the nft contract address an actual link in the NFT Card component

Within the NFT Gallery > NFT Card that gets created for each nft in the wallet that is searched.

The etherscan contract address and etherscan logo should be wrapped in an to create a link to it.

The css for this already has the cursor set to pointer, but it is not a link to the etherscan contract address (like it seemingly should be, as there's an etherscan logo right next to it as well.)

Screenshot 2023-03-02 at 5 18 49 PM

[BUG] - Load More button doesn't actually load more, it loads page 2

When a wallet contains too many NFTs to display on the first page of results in the NFT Gallery, it has a Load More button at the bottom of the gallery.

But when you click this button, it displays the NEXT 100 NFTs, not 100 MORE NFTs.

And there's no way to go back to the first 100.

So, solution seems to be 2 options:

  1. actually load the next 100 NFTS below the first 100 (which Load More seems to mean/denote)
    OR
  2. load the next 100 NFTS (like it does now) but have pagination - a way to click back to page 1 and on page 1 a way to click to page 2 of these displayed NFTs.

Package.json File Missing also getting error with npx create-web3-dapp@latest nft-explorer

I am trying to set this app up but there's no package.json file for this. How can there be no package.json file for a react app? are you using something else or is the file missing?

I also used this below command

npx create-web3-dapp@latest nft-explorer

But it ends up giving error I ve been using NPM and node for years but havent seen this error

Error: spawn npm ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn npm',
  path: 'npm',
  spawnargs: [ 'install', '--color', '--no-audit', '--progress', '--verbose' ]

[ENHANCEMENT] - NFTs displayed in NFT Gallery missing a responsive breakpoint

The NFTs that are displayed in the NFT Gallery are responsive for mobile/screen sizes, but it jumps from displaying 2 across to 4 across. It cuts off the NFTs that are displayed when 4 across. There should be an option where 3 across are shown as well. Basically, it should only ever show the full NFT card, if the full NFT card doesn't fit - it shouldn't be shown.

Screenshot 2023-03-03 at 8 28 01 AM

Screenshot 2023-03-03 at 8 28 25 AM

Screenshot 2023-03-03 at 8 28 35 AM

Update Api for nextjs

Hello in nextjs there is no pages folder anymore and the API Routes differ from the existing ones. Please update the source code to work with the new app directory system of nextjs. app -> [Foder named like api file] -> route.js

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.