Skip to content

Instantly share code, notes, and snippets.

@Sonic9302
Created February 6, 2025 17:38
Show Gist options
  • Save Sonic9302/b79870e1b175624d1d0af6ed098c9ec1 to your computer and use it in GitHub Desktop.
Save Sonic9302/b79870e1b175624d1d0af6ed098c9ec1 to your computer and use it in GitHub Desktop.
// Подключение Firebase
import { initializeApp } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-app.js";
import { getFirestore, collection, addDoc } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js";
// Ваши данные конфигурации Firebase
const firebaseConfig = {
apiKey: "AIzaSyB9wYWsbMcA0VhvqL0Ws0YMQj4bwVnFgic",
authDomain: "sonic9302-ee9b6.firebaseapp.com",
projectId: "sonic9302-ee9b6",
storageBucket: "sonic9302-ee9b6.firebasestorage.app",
messagingSenderId: "972985351917",
appId: "1:972985351917:web:000cbf8c4ba38281e896e4",
measurementId: "G-PE57D478QJ"
};
// Инициализация Firebase
const app = initializeApp(firebaseConfig);
const db = getFirestore(app); // подключение Firestore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment