Make sure you ⭐️ this repository if you find it helpful or interesting :)
npx create-react-app your-project-name --template typescript-firebaseOR
yarn create react-app your-project-name --template typescript-firebase-
Click on
Add project.- Follow steps and create project.
-
Click on web icon.
- Register web app.
- You will get details for setting up
Firebase SDK.
-
Add your config details in your
.env.
-
In your project console, click on
AuthenticationandGet Started. -
In
Sign-in method, click onGoogle. -
Toggle
Enableand click onSave.
-
Create a new component in
src/screens. -
In your
src/config/routes.ts.
{ path: "/your-route", component: YourScreenComponentName, name: "Screen Name For Reference", protected: false, // if user needs to be authenticated to access this screen }Routing setup using react-router-dom.
-
With easily implementable private routes (routes only authenticated users can use).
-
Easily add new screens.
Authentication implemented implemented
SignIn with Google implemented using firebase and react-firebase-hooks.
Firebase configured with GoogleAuthProvider implemented.
Login Screen UI built using @mui/material.
├── src │ ├── components │ │ ├── auth │ │ | ├── AuthChecker.tsx │ │ | ├── AuthContainer.tsx │ │ | ├── Logout.tsx │ │ ├── utils │ │ | ├── Center.tsx │ ├── config │ │ ├── firebase.config.ts │ │ ├── firebase.ts │ │ ├── routes.ts │ ├── screens │ │ ├── Login.tsx │ │ ├── Home.tsx