This project deploys ERC20 token and ERC721 (nft) to Ethereum blockchain It has three main folders:
- blockchain: contains the solidity smart contracts to be deployed on the blockchain
- backend: API to allow frontend to do some actions (WIP)
- frontend/thirdweb-app: web app with nextjs and thirdweb component (react)
- frontent/web3-app: web app with vanilla js
- node v20.14.0
- npm 10.8.1
- bun 1.1.15
bun install dotenv
bun install --save-dev hardhat
- hardhat 2.22.5
bun install --save-dev typescript
bun install --save-dev ts-node
bun install --save-dev @nomicfoundation/hardhat-toolbox
- @nomicfoundation/[email protected]
bun install --save-dev @openzeppelin/contracts
- @openzeppelin/[email protected]
- chai 5.1.1 bun install --save-dev @nomiclabs/hardhat-ethers ethers
installed @nomiclabs/[email protected] installed [email protected]
Basic compile, test, local hardhat blockchain and console scripts:
bun hardhat compilebun hardhat testbun hardhat deploy-hardhatrequiresbun run-hardhaton another terminal, port is 7545bun hardhat deploy-ganachedeploys to port 8545 , ganache should be runningbun consolestarts the hardhat console
Build & deployment scripts (recommended):
bun deploy-ganachecompile, test and deploy to local ganache on port 8545bun deploy-hardhatcompile, test and deploy to local hardhat node on port 7545
Running bun console, smart contracts can be used like this:
`const ManuToken = await ethers.getContractAt("ManuToken", "deployed_contract_address");
await ManuToken.totalSupply();`
npx create-next-app@latest
bun i thirdweb [email protected]
react nextjs plaid -> bank integration appwrite -> backend tailwind -> css chart.js -> charting shadcn -> components bun add [email protected] init [email protected] sentry -> monitoring
- ``bun create next-app@latest ./ --typescript --tailwind --eslint` (no scr, app router, no import alias)
bun add shadcn-ui@latestbun shadcn-ui init(defaut, slate, css variables yes)