Skip to content

Latest commit

 

History

History
51 lines (44 loc) · 1.08 KB

File metadata and controls

51 lines (44 loc) · 1.08 KB

Blockchain Full-Stack App

Structure

blockchain-fullstack/
├── frontend/     # React + Vite + Tailwind + Ethers.js + Wagmi
├── backend/      # Express + MongoDB + Mongoose + Web3.js
└── contracts/    # Hardhat + OpenZeppelin + Ethers.js

Prerequisites

Setup

Frontend

cd frontend
npm install
npm run dev

Backend

cd backend
cp .env.example .env   # fill in your values
npm install
npm run dev

Contracts

cd contracts
cp .env.example .env   # fill in your values
npm install
npx hardhat compile
npx hardhat test
npx hardhat node       # local blockchain
npm run deploy:local

VS Code Extensions (install manually)

  • Solidity (NomicFoundation.hardhat-solidity)
  • ESLint (dbaeumer.vscode-eslint)
  • Prettier (esbenp.prettier-vscode)
  • Tailwind CSS IntelliSense (bradlc.vscode-tailwindcss)
  • GitLens (eamodio.gitlens)
  • Thunder Client (rangav.vscode-thunder-client)