parmarkalpesh / google-authentication

Home Page:https://google-authentication-flame.vercel.app

Repository from Github https://github.comparmarkalpesh/google-authenticationRepository from Github https://github.comparmarkalpesh/google-authentication

Google Authentication with React & Firebase

πŸš€ A secure Google authentication system built with React and Firebase Authentication.

Google Auth Preview

πŸ“Œ Features

βœ… Google Sign-In & Sign-Out
βœ… Firebase Authentication Integration
βœ… Secure User Session Management
βœ… Responsive & Clean UI
βœ… Protected Routes Example


πŸ›  Tech Stack

  • Frontend: React.js, CSS, Bootstrap
  • Authentication: Firebase Authentication
  • State Management: React Hooks
  • Routing: React Router

πŸš€ Getting Started

1️⃣ Clone the Repository

git clone https://github.com/parmarkalpesh/google-authentication.git
cd google-authentication

2️⃣ Install Dependencies

npm install

3️⃣ Set Up Firebase

  1. Go to the Firebase Console β†’ Firebase

  2. Create a new project

  3. Enable Google Authentication

  4. Get your Firebase Config Keys from Project Settings β†’ General β†’ Web SDK Config

  5. Create a .env file and add the Firebase config:

    REACT_APP_API_KEY=your_api_key
    REACT_APP_AUTH_DOMAIN=your_auth_domain
    REACT_APP_PROJECT_ID=your_project_id
    REACT_APP_STORAGE_BUCKET=your_storage_bucket
    REACT_APP_MESSAGING_SENDER_ID=your_messaging_sender_id
    REACT_APP_APP_ID=your_app_id

4️⃣ Start the App

npm start

Your app should now be running on http://localhost:3000/ πŸŽ‰


πŸ”‘ How It Works

  1. Click the "Sign in with Google" button
  2. Select your Google account
  3. Get authenticated and see your profile details
  4. Click "Logout" to sign out

πŸ“Έ Screenshots

πŸ”Ή Login Page

Login Screenshot

πŸ”Ή Authenticated User Dashboard

Dashboard Screenshot


πŸ›  Project Structure

google-authentication/
│── src/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ Login.js
β”‚   β”‚   β”œβ”€β”€ Dashboard.js
β”‚   │── context/
β”‚   β”‚   β”œβ”€β”€ AuthContext.js
β”‚   β”œβ”€β”€ App.js
β”‚   β”œβ”€β”€ index.js
│── public/
│── .env
│── package.json
│── README.md

πŸ’‘ Customization

  • Modify the UI in Login.js & Dashboard.js
  • Update Firebase settings in .env
  • Customize routing in App.js

🀝 Contributing

Pull requests are welcome! Feel free to submit issues or suggestions.


πŸ“œ License

This project is licensed under the MIT License.


🌟 Show Your Support!

⭐ Star this repo if you found it useful!
πŸ“Œ Follow me on GitHub: @parmarkalpesh

About

https://google-authentication-flame.vercel.app


Languages

Language:JavaScript 58.4%Language:HTML 27.2%Language:CSS 14.4%