mirror of
https://github.com/chase-manning/pokemon-js.git
synced 2025-10-12 23:50:19 +00:00
✨ create db config
This commit is contained in:
parent
bfab7327f9
commit
e693ea98b9
1 changed files with 17 additions and 0 deletions
17
src/app/db.ts
Normal file
17
src/app/db.ts
Normal file
|
@ -0,0 +1,17 @@
|
|||
import { initializeApp } from "firebase/app";
|
||||
import { getFirestore } from "firebase/firestore";
|
||||
|
||||
const firebaseConfig = {
|
||||
apiKey: "AIzaSyDsS3qmLF4mHn8irsGzqUCYh9Pm872RGUE",
|
||||
authDomain: "lien-pokemon.firebaseapp.com",
|
||||
projectId: "lien-pokemon",
|
||||
storageBucket: "lien-pokemon.appspot.com",
|
||||
messagingSenderId: "2050363386",
|
||||
appId: "1:2050363386:web:c1d4cf61c9e657bb9b1e43",
|
||||
};
|
||||
|
||||
// Initialize Firebase
|
||||
const app = initializeApp(firebaseConfig);
|
||||
|
||||
// Initialize Cloud Firestore and get a reference to the service
|
||||
export const db = getFirestore(app);
|
Loading…
Add table
Add a link
Reference in a new issue