nft-marketplace-part-1
A tutorial for an NFT Market Place built using Near Protocol and React.js.
Preview
To run this app locally, follow below steps:
Clone using command line interface:
git clone https://github.com/kels-orien/nft-marketplace-part-1.git
Create wallet testnet account
nft-contract
folder/directory using command CLI, login to near wallet account
From the near login
Build the contract
From nft-contract
directory using CLI:
For Windows users:
/build.bat
For Mac and Linux users:
/build.sh
Create a subaccount
To create subaccount from nft-contract
directory via CLI use command:
near create-account nft-contract.youraccountname.testnet --masterAccount youraccountname.testnet
Deploy the contract
near deploy --accountId nft-contract.youraccountname.testnet --wasmFile res/nft_contract.wasm
Edit contract name
Change the youraccountName
part of the contractName
constant in config.js
file to your own account name.
Install packages for frontend
Go to root directory nft-marketplac-part-1
using CLI and install packages:
cd ..
npm install
Launch frontend
npm start