Giter Club home page Giter Club logo

simple-nft-marketplace's Introduction

Simple NFT Marketplace

日本語の解説ブログはこちら

This project provides sample code to build a simple NFT (Non-Fungible Token) based marketplace with Amazon Managed Blockchain.

NFTs are cryptoassets in which each token is unique, and therefore able to create a relationship, or contract, between a specific unique token, and a specific asset - including physical asset, virtual asset and more. This contract allows ownership of a digital asset to be proven. For this reason, NFTs are also known as deeds.

While there are multiple standards for non-fungible tokens, this exercise will use the Ethereum Blockchain network, and ERC721 standard for non-fungible tokens.

To be able to create the required contracts, we will:

  1. Create a Node connected to a Blockchain network
  2. Manually Generate, verify and deploy a contract.
  3. Deploy an API to automate the process
  4. Create a Front End that utilizes the API
  5. Deploy the MarketPlace Front End

You will use the following tool set:

  • Git, and your OS Command Line
  • Node.js and npm
  • the AWS CLI and AWS Console
  • AWS CDK to deploy backend API (/provision)
  • Contract written in Solidity (/contract)
  • Marketplace web UI (/marketplace)

Do NOT use this codes in your production workloads.

Architecture

Architecture

Docs

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

simple-nft-marketplace's People

Contributors

amazon-auto avatar dependabot[bot] avatar fsatsuki avatar nmatsuo63 avatar ryansonshine avatar tbrand avatar tbrandaws 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  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  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

simple-nft-marketplace's Issues

Add automation to steps

The step-by-step instructions are great for users who want to learn but some users may also find an automated setup/deploy convenient as well.

Insufficient funds

I followed the full documentation and after the stack deployed I saw
Checking ETH balance for address 0x083bF8ec0bA1d508b03E1815870968F98A32114e
ETH balance for 0x083bF8ec0bA1d508xyzE1815870968F98A32114e is 0. Sleeping for 5 seconds before checking again
ETH balance for 0x083bF8ec0bA1d508xyzE1815870968F98A32114e is 0. Sleeping for 5 seconds before checking again
ETH balance for 0x083bF8ec0bA1d508xyzE1815870968F98A32114e is 0. Sleeping for 5 seconds before checking again
ETH balance for 0x083bF8ec0bA1d508xyzE1815870968F98A32114e is 0. Sleeping for 5 seconds before checking again

I made the decision to do it manually but I have this issue
npx hardhat run --network amb scripts/deploy-amb.js
You are using a version of Node.js that is not supported by Hardhat, and it may work incorrectly, or not work at all.

Please, make sure you are using a supported version of Node.js.

To learn more about which versions of Node.js are supported go to https://hardhat.org/nodejs-versions
Adding https:// prefix to AMB_HTTP_ENDPOINT
Adding https:// prefix to AMB_HTTP_ENDPOINT

/Users/myuser/projects/simple-nft-marketplace/contract/node_modules/web3-core-helpers/lib/errors.js:28
var err = new Error('Returned error: ' + message);
^
Error: Returned error: insufficient funds for gas * price + value
at Object.ErrorResponse (/Users/myuser/projects/simple-nft-marketplace/contract/node_modules/web3-core-helpers/lib/errors.js:28:19)
at /Users/myuser/projects/simple-nft-marketplace/contract/node_modules/web3-core-requestmanager/lib/index.js:300:36
at XMLHttpRequest.request.onreadystatechange (/Users/myuser/projects/simple-nft-marketplace/contract/node_modules/@aws/web3-http-provider/index.js:45:9)
at XMLHttpRequest.dispatchEvent (/Users/myuser/projects/simple-nft-marketplace/contract/node_modules/xhr2/lib/xhr2.js:76:20)
at XMLHttpRequest._setReadyState (/Users/myuser/projects/simple-nft-marketplace/contract/node_modules/xhr2/lib/xhr2.js:422:14)
at XMLHttpRequest._onHttpResponseEnd (/Users/myuser/projects/simple-nft-marketplace/contract/node_modules/xhr2/lib/xhr2.js:616:14)
at IncomingMessage. (/Users/myuser/projects/simple-nft-marketplace/contract/node_modules/xhr2/lib/xhr2.js:568:23)
at IncomingMessage.emit (node:events:525:35)
at IncomingMessage.emit (node:domain:489:12)
at endReadableNT (node:internal/streams/readable:1359:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21)

Can you help me please?

issue regarding no show for account details

I followed all your steps but while coming to the next step after creating account my account details are not showing c=giving 502 error neither gives option to connect with metamask

Failed to load resource: the server responded with a status of 502 ()

Everything in the app is working beside the following:

The problem arises in the Eth Deposit section of Docs: https://github.com/aws-samples/simple-nft-marketplace/blob/main/docs/en/DOCS_04_FRONTEND.md

After I click the "Account" button in the upper right-hand corner of the page I do not see the following information:
Address: Public Address
Balance: The balance of deposited Ethereum
Private Key: The private key of the wallet. Display by pressing the "Retrieve" button

Rather, I see "Loading ..." see below:

Screen Shot 2022-10-11 at 9 38 39 PM

In the console I get the following error:

Failed to load resource: the server responded with a status of 502 ()
vue.runtime.esm.js:3019 Error: Request failed with status code 502
    at e.exports (createError.js:16:15)
    at e.exports (settle.js:17:12)
    at XMLHttpRequest.S (xhr.js:66:7)

Im not sure if its an error in the front end, env variables, or one of my AWS apps. Please help as I am very excited about this repo and already learned a ton!

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.