使用 express 設定基本路由,切換分頁
- 首頁
- About
- Portfolio
- Contact 點擊後會分別進入到該分頁的頁面
- 將專案 clone 到本地
- 在終端機進入資料夾,輸入:
npm install
- 安裝完後,輸入:
npm run start
- 看到以下這行,代表成功進入,複製以下網址至瀏覽器開啟
Express is running on http://localhost:3000
- 若要暫停伺服器
ctrl + c
- Node.js @14.16.0
- Express @4.16.4
- Express-handlebars @3.0.0
- npm @6.14.11