--- title: 'FoodieDate' disqus: hackmd --- FoodieDate === [TOC] ## 資源 [一些筆記(含後端系統懶人包)](https://www.notion.so/f0ae00ab1e47497292f49de21a208059) [middleware](https://stackoverflow.com/questions/14958296/how-to-put-middleware-in-its-own-file-in-node-js-express-js) [聊天室](https://dotblogs.com.tw/explooosion/2018/01/27/210248) [email系統](https://cythilya.github.io/2015/08/19/node-nodemailer/)(新帳號要開啟「低安全性存取」) [sendmail](http://linux.vbird.org/linux_server/0380sendmail.php#client_linux_mail) [驗證](https://andyyou.github.io/2017/09/06/your-nodejs-authentication-probably-wrong/) [passport](https://ithelp.ithome.com.tw/articles/10228464) [passport 官方文件](https://github.com/jaredhanson/passport) [Git fetch](https://ithelp.ithome.com.tw/articles/10242089) [multer base64](https://ithelp.ithome.com.tw/articles/10231435/) [multer fs](https://ithelp.ithome.com.tw/articles/10231465) [Model populate](https://dev.to/paras594/how-to-use-populate-in-mongoose-node-js-mo0) [populate](https://segmentfault.com/a/1190000021151338?utm_source=sf-similar-article) [socket](https://segmentfault.com/a/1190000005688286) <br /> <br /> <br /> ## Repository ### 基本上分為四個資料夾 + contact : 放入routes.js和middlewares.js + controllers : 放入功能的js + models : 放mongoose的schema + views : 自己寫的前端用來測試功能 <br /> ## 目前要做的功能 ## [Figma](https://www.figma.com/file/r9ZuI88CFe2rPTiyLLZR5q/foodidate?node-id=0%3A1) <br /> ## 遇到的問題 台T 西W 日J 甜點S 飲料D 早午餐B 非法字元攻擊問題? <br /> ## Work ### Daniel 判斷邀約失效(時間、人數) 顯示要參加的邀約 ### Dobby <br /> ## 完成功能 註冊&登入 100% 刪除 user type: email nodemailer 餐廳API字串處理 確認密碼(double check) 登入狀態 整合 email verify verify password 存照片&顯示出來(貼文)(base64) 上傳大頭照 touchOnline 已經在 middleware 做好了 朋友 <br /> ## 以後再弄的 備份資料(放到 txt, json 裡面然後 gitignore) 回傳的資訊可以刪去冗的 <br /> ## 前端接口 註冊 name: 1.name 2.username(學號) 3.password 4.password2(跟password一樣) 驗證 name: 1.verifyCode 登入 name: 1.username(學號) 2.password 貼文 poster: 1.content 內文 2.restaurant 餐廳id ## Route <iframe width="100%" height="500" src="https://hackmd.io/UFRyY1XYRJOr9Es4uFJIAg" frameborder="10"></iframe> https://hackmd.io/UFRyY1XYRJOr9Es4uFJIAg ## 討論 1. 流程圖 (route) 2. 餐廳格式 3. 貼文格式 4. 好友的細節 > 引用區塊 *斜體* **粗體** * <font color="ff0000">Hello world</font> ```gherkin=
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up