Implement firebase authwith continue with google option and user profile page#23
Open
Prateekiiitg56 wants to merge 3 commits intoShubhangiRoy12:mainfrom
Conversation
|
@Prateekiiitg56 is attempting to deploy a commit to the Shubhangi Roy's projects Team on Vercel. A member of the Team first needs to authorize it. |
Owner
|
Conflict in connection |
Contributor
Author
|
@ShubhangiRoy12 it resolved now!! |
Owner
|
this has conflicts to merge |
Contributor
Author
|
@ShubhangiRoy12 its all resolved now |
Owner
|
still it has many conflict |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This is a major feature update that introduces a complete user authentication system powered by Firebase and adds a comprehensive, multi-functional User Profile Page.
These changes move the project from a static demo to a dynamic web application with secure user management, consistent navigation, and personalized user settings.
Key Changes
Firebase Authentication Integration
Dual Login Methods: The login.html page now supports both traditional Email/Password login and a one-click Sign in with Google option.
User Registration: A new register.html page allows users to create new accounts using Email and Password.
Secure & Scalable: All authentication is handled securely by Firebase, providing a reliable and scalable foundation for user management.
New User Profile Page (/Profile/profile.html)
Protected Route: The profile page is now a protected route; users who are not logged in will be redirected to the login page.
Dynamic User Info: Displays the logged-in user's information, including an initials-based avatar, display name, and email.
Edit Profile: Users can now update their display name directly from the profile page.
Account Management: A "Danger Zone" has been added, allowing users to permanently delete their own account after a confirmation prompt.
Sitewide UI & Navigation Consistency
Unified Navbar: The modern, responsive navigation bar has been added to all pages (Shipments, Vehicles, Routes, Schedule, Profile, etc.) for a consistent user experience.
Corrected Links: All navigation links have been updated to be root-relative (e.g., /main.html), fixing all 404 pathing errors.
Updated Branding: All footers have been updated from "Transport Co." to "MooVit" for brand consistency.
To run this code, the reviewer or any future developer must add their own Firebase project configuration. The application will not be able to connect to Firebase and will be stuck on the loading screen without it.
You need to add your firebaseConfig object to the following files:
login.html
register.html
Profile/profile.js
Replace this placeholder block in each file with your own configuration:
JavaScript
const firebaseConfig = {
apiKey: "YOUR_API_KEY",
authDomain: "YOUR_AUTH_DOMAIN",
projectId: "YOUR_PROJECT_ID",
storageBucket: "YOUR_STORAGE_BUCKET",
messagingSenderId: "YOUR_MESSAGING_SENDER_ID",
appId: "YOUR_APP_ID"
};
Checklist
[x] User registration and login functionality is complete.
[x] The new profile page is fully functional.
[x] The responsive navbar is consistent across all pages.
[x] All navigation links have been corrected.
[x] Code includes placeholder for required Firebase configuration.