Skip to content

mmm999xp/Url-Shortener

Repository files navigation

URL Shortener

這是一個短網址產生器

專案畫面

MyImage

專案功能

使用限制

環境建置

  • node.js
  • mongoDB

專案安裝流程

0.請先到mongoDB註冊登入並取得資料庫金鑰(key)

1.確保您的電腦安裝node.js之後開啟終端機輸入以下指令下載專案

git clone https://github.com/mmm999xp/Url-Shortener

2.進入專案資料夾,並建立.env檔案,並在其中輸入以下內容(<>中的內容請依取得的金鑰做替換)

MONGODB_URI = mongodb+srv://<user_name>:<password>@cluster0.z4m2yov.mongodb.net/URLshortener?retryWrites=true&w=majority

3.終端機輸入以下指令安裝npm

npm install

4.終端機輸入以下指令開啟伺服器

npm run dev

5.開啟任意瀏覽器輸入網址就可以進入畫面囉

http://localhost:3000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published