This is a practice web application built with React and Vite. It uses Firebase Authentication to allow users to log in or sign up using Google or email and password. Once logged in, users can view their data, including their name and email. The app is deployed using Netlify CLI.
- User authentication with Firebase
- Sign up with email and password
- Log in with email and password
- Sign in with Google
- Display user data (name and email)
- Deployed using Netlify CLI
- Node.js and npm installed
- Firebase project set up
- Netlify account
-
Clone the repository:
git clone https://github.com/Sagnik-Coder24/Firebase-Login.git cd Firebase-Login
-
Install dependencies:
npm install
- Go to the Firebase Console.
- Create a new project.
- Add a web app to your project.
- Copy the Firebase SDK configuration and add it to your project.
VITE_FIREBASE_API_KEY=your-api-key
VITE_FIREBASE_AUTH_DOMAIN=your-auth-domain
VITE_FIREBASE_PROJECT_ID=your-project-id
VITE_FIREBASE_STORAGE_BUCKET=your-storage-bucket
VITE_FIREBASE_MESSAGING_SENDER_ID=your-messaging-sender-id
VITE_FIREBASE_APP_ID=your-app-id
-
Start the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:5173
to see the app in action.
-
Install Netlify CLI:
npm install -g netlify-cli
-
Log in to Netlify:
netlify login
-
Deploy the app:
netlify deploy
-
Follow the prompts to link your site to a Netlify project and deploy your app.
- Sign up or log in using email and password or Google.
- View your name and email on the next page.
- React
- Vite
- Firebase Authentication
- Netlify CLI
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request