Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener

Snapsot about URL Shortener

功能

  • 輸入網址以獲得短網址
  • 輸入短網址以導向原網址

開始使用

  1. 請先確認有安裝Node.js及npm
  2. Clone本專案至您的電腦:開啟終端機,進入欲存放本專案的資料夾路徑,輸入以下指令
git clone https://github.com/realyutou/URL-Shortener.git
  1. 安裝相關套件:輸入以下指令
npm install
  1. 安裝完畢後,設定.env環境變數連線 MongoDB
MONGODB_URI=mongodb+srv://<Your MongoDB Account>:<Your MongoDB Password>@cluster0.xxxx.xxxx.net/<Your MongoDB Table><?retryWrites=true&w=majority
  1. 執行此專案:輸入以下指令
npm run start
  1. 若終端機出現以下訊息,代表專案已順利執行,請至瀏覽器進入該網址
The server is running on http://localhost:3000
  1. 若欲暫停使用
ctrl + c

開發工具

  • Node.js 18.16.0
  • Express 4.17.1
  • Express-handlebars 4.0.2
  • Bootstrap 5.3.0
  • Dotenv 16.3.1
  • Mongoose 5.9.7

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages