Skip to content

miaout11/URL-Shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener - introduction

可以縮短網址的長度

首頁圖 Index page about Restaurant List

成功縮短網址圖 Index page about Restaurant List

功能列表

  • 可將網址縮短,並可透過按鈕直接複製成功縮短的網址。

安裝與執行步驟

  1. 請先確認有安裝 node.js 與 npm

  2. 將專案 clone 到本地

  3. 環境變數設置:

    • Windows cmd: set "MONGODB_SHORT_URI=你的MongoDB連線字串"
    • MacOS terminal and git bash : export MONGODB_SHORT_URI="你的MongoDB連線字串"
  4. 在本地開啟之後,透過終端機進入資料夾,輸入:

    npm install  //安裝套件
    
  5. 安裝完畢後,繼續輸入:

    npm run start  //執行程式
    
  6. 若看見此行訊息則代表順利運行,打開瀏覽器進入到以下網址

    Listening on http://localhost:3000
    
  7. 結束使用

    ctrl + c  //結束程式
    

開發工具

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published