第一次嘗試短網址產生器 1.0 就覺得很有趣,這個版本是 2.0 的進階版,與第一版的差異在新增 User model,使用者登入後才可以使用縮短網址的功能,並且新增忘記密碼的功能,讓金魚腦的我可以重新設定密碼。
- Google 第三方登入
- 忘記密碼
- 縮短網址
- 查看網址清單
- 修改預設 URL
- 刪除清單網址
- node.js@6.14.2
- express@4.18.1
- express-handlebars@6.0.0
- method-override@3.0.0
- mongoose@6.5.1
- random-string@1.2.2
- express-session@1.17.3
- jsonwebtoken@8.5.1
- nodemailer@6.8.0
- passport@0.6.0
- passport-google-oauth20@2.0.0
- passport-local
- validator
-
下載專案
git clone git@github.com:Kris3131/Shortener-Url.git -
安裝套件
npm install -
建立
.env檔,所需要的env變數可以在.env.sample檔案中找到 -
nodemailer 設定比較多步驟,可以參考 nodemailer 官方手冊
-
npm run dev啟動 localhost




