經過重啟北護課程查詢系統 Day 1 - 頁面爬蟲的小試身手**,Day 2 要來決定如何實作網頁啦!**

筆者自己想要學點新的東西,所以決定使用標題打的技術來實作~~ 可能有些框架大家不是很熟悉,下面我一一的請 GPT 介紹

<aside> 📢 想少時間的大大建議可以選擇看 github 唷! https://github.com/ntunhs-course-ecosystem/course-hub/tree/day2

</aside>

建立專案

pnpm init

建立 nodejs 的 dev 腳本

修改 package.json

{
...
	"scripts": {
	    "dev": "npm-run-all -p dev:*",
	    "dev:fastify": "nodemon server/server.js | pino-pretty",
	    "dev:css": "tailwindcss -i client/bundle/main.pcss -o client/public/_compiled/main.bundle.css --postcss --watch",
	    "dev:js": "esbuild client/bundle/main.js --outfile=client/public/_compiled/main.bundle.js --bundle --watch",
	    "test": "echo \\"Error: no test specified\\" && exit 1"
	  },
	"nodemonConfig": {
	    "watch": [
	      "server/"
	    ]
	 }
...
}