You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
8
+
This project is about developing a url shortening application in **Flask** and **MongoDB**. User will paste their long URLs in this application and will get a shortened url, which will redirect to the same long url once used in a browser.
9
9
10
10
## ⚙️ Languages or Frameworks Used
11
-
- Flask, Firebase
11
+
- Flask, MongoDB
12
12
- HTML, CSS, Bootstrap
13
13
14
14
15
15
## 🌟 How to run
16
16
-### Install all the requirements
17
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.
18
+
-### MongoDB Setup for Project
19
+
20
+
- Download monogdb from the [official website](https://www.mongodb.com/try/download/community) and setup in your local system for testing.
21
+
- Once it is setup locally, try creating documents and collections in mongodb to familiarize yourself with it.
22
+
- You can also download the `MongoDB Compass`, which is the GUI version of Mongo Shell.
23
+
- Once all the local testing is done, you can create a free cloud version of MongoDB in [MongoDB Atlas](https://www.mongodb.com/cloud/atlas/register) and get the following credentials from the dashboard of atlas:
24
+
```bash
25
+
export MONGO_URI=YOUR_MONGO_URI
26
+
export MONGO_USERNAME=YOUR_MONGO_USERNAME
27
+
export MONGO_PASSWORD=YOUR_MONGO_PASSWORD
28
+
```
29
+
24
30
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
31
-### Setup Environment for the project
37
32
- Now create a `.env` file in your project dreictory and include the following parameters as it is :-
0 commit comments