OctoPlace - NFT Marketplace by Octos.eth
- Supports buying and listing NFTs
- Supports both ERC721 and ERC1155 token standards
- NOTICE: All NFTs on Kovan test network are for testing purposes only! I do not claim ownership and am only using those images to replicate what is seen elsewhere.
-
- Proejcts used: Divine Anarchy, Humanoids, RTFKTCloneXVial, MekaVerse
Big fan of these in case you couldn't tell
- Add alert/prompt for when no browser wallet is detected
- While minting new NFT, show progress bar/indicator
- Test!!
The first things you need to do are cloning this repository and installing its dependencies:
git clone https://github.com/JaredBorders/OctoPlace.git
cd OctoPlace
npm install
Once installed, let's run Hardhat's testing network:
npx hardhat node
Then, on a new terminal, go to the repository's root folder and run this to deploy your contract:
npx hardhat run scripts/deploy.js --network localhost
Next, update the config.js file with the three address generated via the deploy script
export const marketAddress = "ADDRESS_GOES_HERE";
export const erc721TradableAddress = "ADDRESS_GOES_HERE";
export const erc1155TradableAddress = "ADDRESS_GOES_HERE";
Finally, we can run the frontend with:
npm run dev
Note: There's an issue in
ganache-core
that can make thenpm install
step fail.If you see
npm ERR! code ENOLOCAL
, try runningnpm ci
instead ofnpm install
.
Open http://localhost:3000/ to see your Dapp. You will
need to have Metamask installed and listening to
localhost 8545
.
You can find detailed instructions on using this repository and many tips in its documentation.
- Setting up the environment
- Testing with Hardhat, Mocha and Waffle
- Setting up Metamask
- Hardhat's full documentation
Try running some of the following tasks:
npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
node scripts/sample-script.js
npx hardhat help
-
Hardhat: An Ethereum development task runner and testing network.
-
Mocha: A JavaScript test runner.
-
Chai: A JavaScript assertion library.
-
ethers.js: A JavaScript library for interacting with Ethereum.
-
Waffle: To have Ethereum-specific Chai assertions/mathers.
-
See config.js for contract deployment addresses on Kovan network
Invalid nonce
errors: if you are seeing this error on thenpx hardhat node
console, try resetting your Metamask account. This will reset the account's transaction history and also the nonce. Open Metamask, click on your account followed bySettings > Advanced > Reset Account
.