React Facebook-messenger Clone
Follow along with the youtube tutorial 🔴Full Stack React and Firebase Tutorial - Build a Facebook Messenger Clone and set up the firebase app
What I have learned?
- Getting started with ReactJs
- Component oriented conception
- React modules
- React forward ref
- CSS BEM convention (check getbem.com/naming)
- Integration of Firebase for database and hosting (firestore=realtime Firestore database to store comments)
- Integration of Material UI (material-ui.com)
Steps
Create react app sample and start the app
npx create-react-app facebook-messenger-clone
cd facebook-messenger-clone
npm start
Components
- App
- Messages list
React modules
- install flip-move for a smooth animation when sending message with
npm i react-flip-move
Deployment
Install Firebase for backend with
npm i firebase
Log in the app with firebase
firebase login
- Deploy firebase with following command in console
firebase init
Enter yes to proceed
? Hosting: Configure and deploy Firebase Hosting sites
? Use an existing project
? facebook-messenger-clone-8cc6b (facebook-messenger-clone)
? What do you want to use as your public directory? build
? Configure as a single-page app ? Yes
- Clean and create the version to deploy with
npm run build
- After any update, run the command again and deploy with
firebase deploy