|
1 |
| -# mbsa.in |
| 1 | +<!--Please do not remove this part--> |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | +# Firebase Authentication for Flask Application |
| 6 | + |
| 7 | +## 🛠️ Description |
| 8 | +This project enables developers to implement secure user authentication features in their Flask applications with ease using Firebase Authentication which offers various authentication methods, including email/password, social media login (such as Google, Facebook, Twitter), and more. It handles the entire authentication process, including user registration, login, and password reset, taking care of security best practices like password hashing and token-based authentication. |
| 9 | + |
| 10 | +## ⚙️ Languages or Frameworks Used |
| 11 | + - Flask, Firebase |
| 12 | + - HTML, CSS, Bootstrap |
| 13 | + |
| 14 | + |
| 15 | +## 🌟 How to run |
| 16 | + - ### Install all the requirements |
| 17 | + Run `pip install -r requirements.txt` to install all the requirements. |
| 18 | + - ### Firebase Setup for Project |
| 19 | + |
| 20 | + - Create a [firebase](https://firebase.google.com/) project, set up a web project and get all the `Project Configurations` from `Project Settings`. |
| 21 | + |
| 22 | + - Navigate to the **Authentication** section in your firebase project and enable the `Email and Password` |
| 23 | + authentication. |
| 24 | + |
| 25 | + - The `Project Configurations` will look as follows :- |
| 26 | +```bash |
| 27 | + "apiKey": YOUR_API_KEY , |
| 28 | + "authDomain": YOUR_AUTH_DOMAIN, |
| 29 | + "databaseURL": YOUR_DATABASEURL, |
| 30 | + "projectId": YOUR_PROJECT_ID, |
| 31 | + "storageBucket": YOUR_STORAGE_BUCKET, |
| 32 | + "messagingSenderId": YOUR_MESSAGING_SENDER_ID, |
| 33 | + "appId": YOUR_APP_ID, |
| 34 | + "measurementId": YOUR_MEASUREMENT_ID |
| 35 | +``` |
| 36 | +- ### Setup Environment for the project |
| 37 | + - Now create a `.env` file in your project dreictory and include the following parameters as it is :- |
| 38 | +```bash |
| 39 | +export FIREBASE_APIKEY=YOUR_API_KEY |
| 40 | +export FIREBASE_AUTHDOMAIN=YOUR_AUTH_DOMAIN |
| 41 | +export FIREBASE_DATABASEURL=YOUR_DATABASEURL |
| 42 | +export FIREBASE_PROJECT_ID=YOUR_PROJECT_ID |
| 43 | +export FIREBASE_STORAGE_BUCKET=YOUR_STORAGE_BUCKET |
| 44 | +export FIREBASE_MESSAGING_SENDER_ID=YOUR_MESSAGING_SENDER_ID |
| 45 | +export FIREBASE_APP_ID=YOUR_APP_ID |
| 46 | +export FIREBASE_MEASUREMENT_ID=YOUR_MEASUREMENT_ID |
| 47 | +``` |
| 48 | + |
| 49 | +- ### Now Just, Run the project |
| 50 | + - To the run the project, go to the `bash` terminal of VSCode or any other code editor and run `./start_server.sh`. |
| 51 | + - You don't have to care about setting `.env` then yourself then. |
| 52 | + |
| 53 | + |
| 54 | +## 📺 Demo |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | +## 🤖 Author |
| 59 | + |
| 60 | +Github - [MBSA-INFINITY](https://github.com/MBSA-INFINITY) |
| 61 | +LinkedIn - [MBSAIADITYA](https://www.linkedin.com/in/mbsaiaditya/) |
| 62 | +Portfolio - [MBSA](https://mbsaiaditya.in/) |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
0 commit comments