將網址縮短成短網址
• 將網址縮短成短網址 • 按鈕複製短網址 • 可直接從短網址連到原網址網站
- Node.js 14.16.0
- Express 4.18.2
- Express-handlebars 3.0.0
- Body-parser 1.20.2
- dotenv 16.0.3
- mongoose 7.0.3
- 確認安裝Node.js和npm之後,將專案 clone 到本地
git clone https://github.com/elviawu/URL-Shortener.git
- 透過終端機進入此專案資料夾,輸入:
npm install
- 安裝完畢後,輸入:
npm run start
- 若看見此行訊息則代表順利運行,打開瀏覽器進入到以下網址
The server is running on http://localhost:3000
- 若欲暫停使用
ctrl + c
