Skip to content

Latest commit

 

History

History
54 lines (44 loc) · 1.4 KB

File metadata and controls

54 lines (44 loc) · 1.4 KB

URL_Shortener

短網址產生器

可以將較長的網址縮成較短的「短網址產生器」

功能列表

  • 輸入網址轉換成短網址
  • 點擊 copy 複製短網址
  • 透過短網址轉址到原本網址

畫面預覽

index

index2

安裝

  1. 複製專案,在終端機輸入:
git clone https://github.com/ZHENG-YOU-LU/URL_Shortener
  1. 進入專案資料夾,在終端機輸入:
cd URL_Shortener
  1. 安裝npm套件。在終端機輸入:
npm install
  1. 設定暫時環境變數以連接 MongoDB 資料庫,請在終端機輸入:
export MONGODB_URI_URLSHORTENER = "mongodb+srv://您的帳號:您的密碼@cluster0.euvhff2.mongodb.net/URL_Shortener-list?retryWrites=true&w=majority"
  1. 執行專案。在終端機輸入:
npm run dev
  1. 於瀏覽器網址列輸入:
localhost:3000

使用工具

開發者