參考: https://medium.com/my-blockchain-development-daily-journey/完整的hardhat實踐教程-a9b005aa4c12 ::: success 以下教學使用 Typescript ::: 會使用多個 plugin,若要看載哪些 plugin和使用方法,請直接搜尋 "PlugIn" 安裝 使用 npm,如果要用 yarn 也行。因為 hardhat 只有在本地才會使用,所以加上 -D。
6/6/2023使用 t3-app 集結一堆好處 npm create t3-app@latest npm create vite@latest 包含: netxjs、tailwind、nextAuth、prisma (資料庫工具,提供好上手的資料庫串接功能)、trpc、envVariables 下一個步驟連結資料庫,這邊使用 prisma ,是個好用的資料庫工具,先申請planetscale ,創建資料庫,可以在 main 資料庫新增一個 dev 資料庫,若要轉移資料庫很方便就可以轉移過去了。 接下來 connect with 要選擇 prisma (當然,我們是用 prisma),將底下 .env 的字串貼到本地 .env裡面,並且 schema.prisma 也是取代裡面的內容,但要注意的是,記得 uncomment @db.Text 之後會有以下錯誤:
5/27/2023A survey on security challenges and solutions in the IOTA
2/5/2023遇到安裝錯誤 刪除 typebox.js 的 schemas; 遇到: ReferenceError: TextEncoder is not defined,就在node_modules/whatwg-url/lib/encoding.js 加上 const {TextDecoder, TextEncoder} = require("util"); 注意都改成 SSI_BRIDGE_URL=http://localhost:3000、AUDIT_TRAIL_URL=http://localhost:3000 .env 參考如下: #----------------------- # For management purpose #----------------------- MONGO_URL=mongodb://root:root@mongo:27017
2/3/2023or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up