Skip to content

nickchen111/Google_Login_Website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google_Login_Website

專案說明

  • 網站功能 : 建立一個登入網站, 使用者可以在該網站本地註冊帳號並且登入, 也可以藉由OAuth第三方授權的方式透過google帳號登入網站, 登入後使用者可以在當前頁面新增自己的貼文。
  • 網站版面
    • 首頁 : image

    • 登入畫面 : image 可以選擇要用本地登入還是第三方google登入

    • 透過google登入畫面 : image 可以自行選擇要用哪個google帳戶, 這裡使用passport:用來做身份驗證的middleware 來執行

    • 成功登入後,個人profile: image 可以在這裡點選新增貼文或者登出系統

      • 新增post畫面: image
    • 本地註冊畫面 : image 在此需要填入至少長度為3的姓名、正確的email格式以及長度至少為8的密碼 上述項目如有一個不符合都會跳出錯誤訊息

      • 註冊條件不符合畫面: image *註冊成功畫面: image
  • 技術細節 :
    • 使用MVC架構 建立整個伺服器系統
    • 風格採用RESTful API
    • 網站登入方式新增了Oauth google 2.0的方式 提高使用者註冊機率 (Oauth技術流程如下圖所示) image
    • 對使用者註冊的密碼採用bcrypt技術加鹽
    • 使flash method提升跟使用者的立即互動

Engilish Version

  • Website Functionality:
    • Create a login website where users can register accounts locally and log in. They can also log in via Google OAuth to access the site using their Google accounts. Once logged in, users can add their posts on the current page.
  • Website Layout:
    • Homepage: image
    • Login Page: image Users can choose between local login or third-party Google login.
    • Google OAuth Login Page: image Users can select their Google account. Passport, a middleware for authentication, is used here.
    • After successful login, Personal Profile: image Users can add posts or log out from this page.
      • Add Post Page: image
    • Local Registration Page: image Users need to enter a name of at least 3 characters, a valid email format, and a password of at least 8 characters. If any of these criteria are not met, an error message will be displayed.
      • Registration Criteria Not Met Page: image
      • Successful Registration Page: image
  • Technical Details:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors