https://github.com/jacobkosmart/chat-app-react-firebase
Realtime chat-app with firebase
https://github.com/jacobkosmart/chat-app-react-firebase
firebase firebase-authentication firestore
Last synced: 3 months ago
JSON representation
Realtime chat-app with firebase
- Host: GitHub
- URL: https://github.com/jacobkosmart/chat-app-react-firebase
- Owner: jacobkosmart
- Created: 2021-08-12T12:01:18.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-25T08:01:39.000Z (almost 5 years ago)
- Last Synced: 2025-07-22T11:03:22.542Z (12 months ago)
- Topics: firebase, firebase-authentication, firestore
- Language: JavaScript
- Homepage: https://jacobko.info/chat-app-react-firebase/
- Size: 10.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π Twitter Chat - Clone App

## π» 1.νλ‘μ νΈ μκ°
### π μ¬μ©κΈ°μ λ° μΈμ΄
- React hooks
- React-router-dom
- Firebase (Authentication, Firestore DB, Storage)
### β° κ°λ° κΈ°κ°
2021-08-02 ~ 2021-08-06
## π 2.νλ‘μ νΈ λ΄μ©
### π μ£Όμ κΈ°λ₯
- Realtime chat-app
- κ°λ¨ν λ©μμ§μ μ¬μ§νμΌ μ
λ‘λ κ°λ₯ (firebase db μ μ μ₯)
- Firebase Authentication with Email, Google and github
- Profile μμ Display name(NickName) λ³κ²½ κ°λ₯
### π μ€μΉ ν¨ν€μ§
```bash
# CRA
npx create-react-app PROJECT
# React router dom
yarn add react-router-dom
# Firebase
yarn add firebase --save
# UUID
yarn add uuid
# Font awesome
yarn add @fortawesome/fontawesome-free
```
## π 3.μ£Όμ μ½λ
### A. Firebase config in Project
```js
// in fbase.js at root
// .env νμΌμ security code λ₯Ό λ£μ΄μ github μ 곡μ λμ§ μκ² ν¨
// Firebase App (the core Firebase SDK) is always required and must be listed first
import firebase from "firebase/app";
import "firebase/auth";
import "firebase/firestore";
import "firebase/storage";
const firebaseConfig = {
apiKey: process.env.REACT_APP_API_KEY,
authDomain: process.env.REACT_APP_AUTH_DOMAIN,
databaseURL: process.env.REACT_APP_DATABASE_URL,
projectId: process.env.REACT_APP_PROJECT_ID,
storageBucket: process.env.REACT_APP_STORAGE_BUCKET,
messagingSenderId: process.env.REACT_APP_MESSAGIN_ID,
appId: process.env.REACT_APP_APP_APP_ID,
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
export const firebaseInstance = firebase;
export const authService = firebase.auth();
export const dbService = firebase.firestore();
export const storageService = firebase.storage();
```
### B. Authentication
> firebase Authentication κ΄λ ¨ λ΄μ© (Jacob's DevLog) - [https://jacobko.info/firebase/firebase_2/](https://jacobko.info/firebase/firebase_2/)
### C. Firestore DB
> firebase DB κ΄λ ¨ λ΄μ© (Jacob's DevLog) - [https://jacobko.info/firebase/firebase_3/](https://jacobko.info/firebase/firebase_3/)
### D. Storage
> firebase Storage κ΄λ ¨ λ΄μ© (Jacob's DevLog) - [https://jacobko.info/firebase/firebase_4/](https://jacobko.info/firebase/firebase_4/)
## π‘ 4. Reference
Firebase official reference - [https://firebase.google.com/docs/reference/js](https://firebase.google.com/docs/reference/js)
normard corder - [https://nomadcoders.co/nwitter](https://nomadcoders.co/nwitter)