/Google-and-Local-Login-System

Login system using Google OAuth and local email/password.

Primary LanguageEJSMIT LicenseMIT

Contributors MIT License Author LinkedIn


Logo

Google and Local Login System

Login system using Google OAuth and local email/password.
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents

About

Google and Local Login System (GaLLS) 是一個展示 Google 及 Local 帳號登入的網站。GaLLS 使用 node.js 與 express.js 框架建立後端系統 (back-end),以及使用 ejs 和 bootstrap 5 建立前端頁面 (front-end)。網站架設於 Heroku 上。

GaLLS 使用 passport.js 來控制 Google 登入 (passport-google-oauth20),以及透過伺服器資料庫帳號登入 (passport-local)。 Google 登入功能透過使用 Google Cloud Platform (GCP) 中的 OAuth 2.0 用戶端登入。 伺服器登入功能透過連接 MongoDB Atlas 建立 MongoDB 資料庫,並實作 bcrypt 加密用戶密碼,最後使用 passport-local 來驗證用戶登入。

關於 GCP、MongoDB Atlas 的建立流程與 passport.js 的核心概念可以參考以下的文件:

其他的網站特色與功能,還有相關程式碼請參考 Features 😊

Built With:

  • Bootstrap 5
  • Node.js, Express.js, Express-Session, bcrypt
  • ejs (Embedded Javascript)
  • Google Cloud Platform
  • MongoDB Atlas, mongoose
  • passport.js, passport-google-oauth20, passport-local
  • Heroku

Features

Preview

Web-size

Phone-size

Roadmap

  1. User Interface (ejs)
    • Home
    • Navbar
    • Login
    • SignUp
    • Profile
    • Post
    • Flash
  2. Environment
  3. Back-end
    • Express / Express-Router
    • DotEnv
    • Mongoose
    • Passport.js / GoogleStrategy / LocalStrategy
    • AuthCheck
    • Cookie-Session
    • Add Post
  4. Front-End
    • Login Function (Google, Local)
    • SignUp Function (Local)
    • Conditional Navbar
    • Post Function
    • Logout Function
  5. Deployment
    • Heroku

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Reach out to the maintainer at one of the following places:

Acknowledgements