Node.js
express.js
- 打開你的 terminal,Clone 此專案至本機電腦
$ git clone https://github.com/hsuchiashih/Restaurant-List-remote.git
- 開啟終端機(Terminal),進入存放此專案的資料夾
$ cd Restaurant-List-remote
- 安裝 npm 套件
$ npm install
- 安裝 nodemon 套件
$ npm install -g nodemon
- 啟動伺服器,執行 app.js 檔案
$ nodemon app.js
- 當 terminal 出現以下字樣,表示伺服器與資料庫已啟動並成功連結
Express is listening on localhost:3000
- 現在,你可開啟任一瀏覽器瀏覽器輸入 (http://localhost:3000) 即可進入網站體驗
http://localhost:3000
- 依餐廳名稱搜尋喜愛的餐廳
- 點擊餐廳卡片顯示詳細的餐廳訊息
- 可以新增一家餐廳
- 可以修改一家餐廳的資訊
- 可以刪除一家餐廳
- 可以依照喜愛的方式排序