Git Product home page Git Product logo

nft-marketplace-part-2's Introduction

nft-marketplace-part-2

A tutorial of an NFT Market Place built using Near Protocol and React.js Part 2.

Preview

alt-text

To run this app locally, follow below steps:

Clone using command line interface:
git clone https://github.com/kels-orien/nft-marketplace-part-2.git
Create wallet testnet account

open wallet testnet account

From the market_contract folder/directory using command CLI, login to near wallet account

near login

Build the contract

From market_contract directory using CLI:

For Windows users:

/build.bat

For Mac and Linux users:

/build.sh
Create a Market subaccount

To create subaccount from market_contract directory via CLI use command:

near create-account  market_contract.youraccountname.testnet --masterAccount youraccountname.testnet


Deploy the contract
near deploy market_contract.youraccountname.testnet --wasmFile res/market_contract.wasm

Edit contract name

Change the youraccountname part of the MARKET_CONTRACT_NAME constant in config.js file to your own account name.

Initialize Your contract

To initialize our market contract from CLI:

near call market_contract.youraccountname.testnet new '{"owner_id": "nft-contract.youraccountname.testnet"}' --accountId youraccountname.testnet

Install packages for frontend

Go to root directory nft-marketplac-part-1 using CLI and install packages:

cd ..
npm install

Launch frontend
npm start

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.