此網站作為 Express 練習用,以不同路由 render 不同畫面 。
- Node.js v16.16.0
- Express v4.18.1
- Expredd-handlebars v3.0.0
-
請先確認本地環境已安裝 Node.js 與 npm 。
-
將專案 clone 至本地,至終端機輸入:
git clone https://github.com/Gino-Hsu/AC-S6-A22-Express.git
-
透過終端機進入資料夾位置,輸入:
npm install
-
安裝完成後,輸入:
npm run dev
-
在終端機看見以下資訊,表示專案成功在本地運行了。
Express is running on http://localhost:3000
-
打開瀏覽器,輸入 "http://localhost:3000" ,即可瀏覽此專案。
-
停止使用,至終端機:
ctrl + c