一個簡單的餐廳網站,提供給使用者“搜尋餐廳”、“查看餐廳詳細資訊”
- 可以瀏覽餐廳名單
- 可透過輸入關鍵字搜尋餐廳
- 可透過點擊餐廳,查看餐廳詳細資訊
- Node.js v14.16.0
- Express 4.16.4
- Express-handlebars 3.0.0
- Bootstrap 5.0.2
- 確認已安裝node.js、npm、nodemon
- 開啟終端機,複製此專案到本機電腦:
git clone https://github.com/zebrrrra/restaurant_list.git
- 終端機操作進入專案資料夾:
cd restaurant_list
- 進入資料夾後輸入
npm install
- 安裝完畢後,啟動伺服器執行app.js
nodemon app.js
- 若終端機顯示此訊息則代表順利運行,打開瀏覽器進入到以下網址
Listening on http://localhost:3000