Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- dom
- UX
- https://dasima.xyz/%EC%9E%90%EB%B0%94%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8-%EC%A0%9C%EA%B3%B1-math-pow-%EA%B3%84%EC%82%B0/
- 노드교과서
- https://www.daleseo.com/js-array-slice-splice/
- CSS
- 내장고차함수
- redux상태유지
- removeCookie
- 자바스크립트#조건문#문자열
- js
- @redux-toolkit
- https://developer-talk.tistory.com/299
- 자바스크립트
- https://lo-victoria.com/introduction-to-redux-toolkit-for-beginners
- Beesbeesbees
- slice/splice/split
- 자바스크립트#JS#slice#splice
- cmarket
- children vs childrenNodes
- User Flow
- 헷갈린다~
- react
- for~in/for~of
- JS#3일차달리자#초반인데#시간금방~
- UI
- variable#function
- ㄷㅌ
- 자바스크립트#JS#var#let#const#undefined#null
- toString#String
Archives
- Today
- Total
Daily Front_Minhhk
[firebase] 프로젝트 생성 본문
1. firebase 접속
2. 새프로젝트 추가+ (애널리틱스 분석 사용안함)
3. 웹으로 만들기 때문에 웹 선택!
4. 환경변수 적용 -> .env
src/firebase/config.js
const firebaseConfig = {
apiKey: process.env.REACT_APP_API_KEY,
authDomain: process.env.REACT_APP_AUTH_DOMAIN,
projectId: process.env.REACT_APP_PROJECT_ID,
storageBucket: process.env.REACT_APP_STORAGE_BUCKET,
messagingSenderId: process.env.REACT_APP_MESSAGING_SENDER_ID,
appId: process.env.REACT_APP_APP_ID
};
5. src/firebase/config.js.
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
import { getAuth } from "firebase/auth";
import {getFirestore} from "firebase/firestore"
// Your web app's Firebase configuration
const firebaseConfig = {
apiKey: process.env.REACT_APP_API_KEY,
authDomain: process.env.REACT_APP_AUTH_DOMAIN,
projectId: process.env.REACT_APP_PROJECT_ID,
storageBucket: process.env.REACT_APP_STORAGE_BUCKET,
messagingSenderId: process.env.REACT_APP_MESSAGING_SENDER_ID,
appId: process.env.REACT_APP_APP_ID
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
// 인증 초기화 하기
const appAuth = getAuth();
// fireStore에 초기화된 firebase 전달
const appFireStore = getFirestore(app)
// export하기
export { appFireStore, appAuth }
'Code개발일지' 카테고리의 다른 글
정신없이 시간이 흘러간 입사 후 2달 차 후기~ (0) | 2023.07.27 |
---|---|
[firebase] firestore (0) | 2023.05.01 |
React Proxy (0) | 2023.02.06 |
CI / CD (0) | 2023.02.03 |
AWS (0) | 2023.02.02 |