Skip to content

Latest commit

 

History

History
32 lines (30 loc) · 1.17 KB

File metadata and controls

32 lines (30 loc) · 1.17 KB

Codebase Architecture

  1. server setup & conneting to mongo.

  2. express router setup for 'auth' api's.

  3. creating /login, /signup in frontend.

  4. passport.js setup. (npm i passport passport-google-oauth20)

  5. Google strategy options setup.

  6. connecting /auth/google with passport.js.

  7. creating /auth/google/redirect route & checking it connection with googleStrategy callback.

  8. creating User model & connect it with googleStategy callback.

  9. functionality to check weather the user in exist or not.

  10. serializaing and deserializing users.

  11. express-session setup.

  12. accessing user from req after login.

  13. logout functionality.

  14. cors setup

  15. signup button in frontend.

  16. frontend signup logic.

  17. creating Profile component with logout button in frontend.

  18. Logout button in frontend.

  19. authorization of healthmate service.

  20. authorization of mindease(bloom-buds)

  21. local strategy setup.

  22. /auth/local route.

  23. /auth/login route.

  24. setup nodemailer, crypto for forgot password, with /auth/forgot-password.

  25. utilizing sendgrid for sending reset link in email.

  26. login frontend.

  27. forgot-password frontend.

  28. reset-password frontend.

  29. connect-mongo