Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

短網址生產器

介紹

可以將長網址轉換成短網址。 Restaurant

功能

  1. 使用者可以輸入網址
  2. 點擊Shorten可以轉換成短網址
  3. 點擊Back可以回首頁
  4. 點擊轉換網址可以直接連結到該頁面
  5. 點擊Copy圖案可以複製短網址

如何使用

  1. 請先確認有安裝 node.js 與 npm
  2. 將專案 clone 到本地
  3. 在本地開啟之後,透過終端機進入資料夾,輸入:
cd shortenURL
  1. 安裝所需套件
npm i express@4.18.2 express-handlebars@3.0.0
npm i body-parser
npm i dotenv
  1. 安裝mongoose
npm i mongoose@7.0.3
  1. 將自己的mongoose網址貼在.env檔案裡。
  2. 安裝nodemon(已安裝可跳過)
npm install -g nodemon
  1. 啟動伺服器,輸入:
npm run dev
  1. 若看見此行訊息則代表順利運行,打開瀏覽器進入到以下網址
Listening on http://localhost:3000
  1. 若欲暫停使用
ctrl + c

開發工具

  • Node.js 10.15.0
  • Express 4.18.2
  • Express-Handlebars 3.0.0
  • Bootstrap 4.0.0
  • Font-awesome 5.8.1
  • MongoDB
  • Mongoose 7.0.3
  • Dotenv 16.0.3

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages