Skip to content

Implement firebase authwith continue with google option and user profile page#23

Open
Prateekiiitg56 wants to merge 3 commits intoShubhangiRoy12:mainfrom
Prateekiiitg56:Implement-Firebase-Auth-and-User-Profile-Page
Open

Implement firebase authwith continue with google option and user profile page#23
Prateekiiitg56 wants to merge 3 commits intoShubhangiRoy12:mainfrom
Prateekiiitg56:Implement-Firebase-Auth-and-User-Profile-Page

Conversation

@Prateekiiitg56
Copy link
Contributor

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.

⚠️ Important Setup Instructions
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.

move3 move4 mpve5

@vercel
Copy link

vercel bot commented Aug 28, 2025

@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.

@ShubhangiRoy12
Copy link
Owner

Conflict in connection

@Prateekiiitg56
Copy link
Contributor Author

@ShubhangiRoy12 it resolved now!!

@omroy07 omroy07 added the gssoc25 label Sep 8, 2025
@ShubhangiRoy12
Copy link
Owner

this has conflicts to merge

@Prateekiiitg56
Copy link
Contributor Author

@ShubhangiRoy12 its all resolved now

@ShubhangiRoy12
Copy link
Owner

still it has many conflict

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants