Skip to content

kels-orien/nft-marketplace-part-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published