This website is built with React framework Next(SSG), TailwindCSS(styling), Prisma(ORM), wagmi(ENS), Netlify Functions
Uses:
- PlanetScale for MySQL database
- Alchemy provider for accessing blockchain data
This website is intended to work with MySQL database to store data.
Make sure you set up server with MySQL DB and have URL to access it. (Author used PlanetScale as db infrastructure provider)
Then rename .env.example file to .env and update DATABASE_URL in it:
DATABASE_URL="mysql://<your link should be here>"Make sure to run:
-
npx prisma db pushto upload the tables schema -
npx prisma generateto generate local Prisma classes -
node scripts/initialize.js <id of the latest auctioning noun>to populate db with the latest data. You need to call this only once. Make sure that you passidof the last auctioning noun. Get it here: nouns.wtf. This function usesapi.thegraph.comfor loading nouns data from blockchain andapi.coinbase.com/v2for loading ETH-USD rates.
Then rename .env.local.example file to .env.local and update ALCHEMY_ID in it:
ALCHEMY_ID=<your alchemy id here>This is needed to resole ENS domain names and show them instead of barebone addresses.
Then, you can run it locally on development server:
npm run dev
# or
yarn devOpen http://localhost:3000 with your browser to see the result.