Building a Museum selling nfts marketplace for artfact on goerli-optism, Next.js, Tailwind, Solidity, Hardhat, Ethers.js, and IPFS
from a metaverse site, the user can com eto this site and access each particular nft for purchasing
-Node.js version 16.14.0 or greater installed on your machine. I recommend installing Node using either nvm or fnm. -Metamask wallet extension installed as a browser extension
Web application framework - Next.js
Solidity development environment - Hardhat
File Storage - IPFS
Ethereum Web Client Library - Ethers.js
npm install -D tailwindcss@latest postcss@latest autoprefixer@latest
npx tailwindcss init -p
npm run dev
/* tailwind.config.js */
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
};
@tailwind base;
@tailwind components;
@tailwind utilities;
/* hardhat.config.js */
/**
* /* hardhat.config.js
*
* @format
*/
require("dotenv").config();
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
const { API_KEY, Alchemy_provider } = process.env;
module.exports = {
defaultNetwork: "optism_goerli",
networks: {
optism_goerli: {
url: Alchemy_provider,
accounts: [process.env.PrivateKey],
},
},
solidity: {
compilers: [
{
version: "0.6.3",
},
{
version: "0.8.17",
},
],
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
etherscan: {
apiKey: API_KEY,
},
};
click here to confirm Verified contract