Skip to content

Commit

Permalink
Completed Firebase Setup (#81)
Browse files Browse the repository at this point in the history
Co-authored-by: Allan <[email protected]>
  • Loading branch information
Yusuf-Software and AllanSaleh authored Oct 31, 2022
1 parent 1c30a30 commit 0ebd4c5
Show file tree
Hide file tree
Showing 3 changed files with 663 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.0.1",
"@testing-library/user-event": "^14.1.1",
"firebase": "^9.13.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.38.0",
Expand Down
25 changes: 25 additions & 0 deletions src/firebase.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import { getFirestore } from "firebase/firestore";

// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries

// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyDJCGj_7ev2PdLoHmbY4y0KnodX6Wr0v38",
authDomain: "recoded-jobie.firebaseapp.com",
projectId: "recoded-jobie",
storageBucket: "recoded-jobie.appspot.com",
messagingSenderId: "347602460457",
appId: "1:347602460457:web:ea8867354e657f8b2be138"
};

// Initialize Firebase
const app = initializeApp(firebaseConfig);

// Initialize Firebase
const db = getFirestore(app);

export { db };
Loading

0 comments on commit 0ebd4c5

Please sign in to comment.