這是為了 Alpha Camp 學期 2-3 技術驗收所做的小專案
用 Express 設定四個路由,分別為首頁、About、Portfolio、Contact
路徑為 '/' 所有樣式為灰底黑字
路徑分別為 '/about' '/portfolio' '/contact' 不同路徑下,該元素有不同的 CSS style,為深灰底白字
This project is built with:
- 打開你的 terminal,Clone 此專案至本機電腦
git clone https://github.com/a2623212/restaurant_list.git
- 開啟終端機(Terminal),進入存放此專案的資料夾
cd restaurant_list
- 安裝 npm 套件
在 Terminal 輸入 npm install 指令
- 安裝 nodemon 套件
在 Terminal 輸入 npm install -g nodemon 指令
- 啟動伺服器,執行 app.js 檔案
在 Terminal 輸入 nodemon app.js 指令
- 當 terminal 出現以下字樣,表示伺服器與資料庫已啟動並成功連結
Now is running on Express on localhost3000
Now, you can use any sever to access to http://localhost:3000. Enjoy it! 😃