This project was bootstrapped with Create React App.
You can use it through three websites: ReactFireChat (Offical Website), ReactFireChat (Netlify) and ReactFireChat (Cloudflare Pages)
You can use this React application directly by clicking here
Or if you want to edit this project then you can do the following:
git clone -b clone-branch https://github.com/thaiminhnguyen1999/ReactFireChat
cd ReactFireChat
npm i
And if you want to run the React app then just enter the command:
npm start
ReactFireChat
├── README.md
├── LICENSE
├── package.json
├── package-lock.json
├── node_modules
├── public
│ ├── img
│ ├── favicon.ico
│ ├── index.html
| ├── logo192.png
| ├── logo512.png
| ├── manifest.json
│ └── robots.txt
└── src
├── App.css
├── App.js
├── App.test.js
├── index.css
├── index.js
├── logo.svg
|── reportWebVitals.js
└── setupTests.js
The project uses Firebase. So before running the npm start
command add the Firebase project configuration first.
First, visit the website firebase.google.com.
Then press the Get Started
button and you will be taken to another page.
Select Add Project
then enter a name for your Firebase Project and press Continue
.
Google will ask if you want to add Google Analytics to your Firebase project? In my opinion, it can be turned on but can't be turned on, so I don't turn it on (If not, click the button to the left of the word Enable Google Analytics for this project
) and press Continue
Now wait a bit for Firebase to create the project. After complete, press Continue
Click the </>
icon to continue.
Now enter the app name in My web app
and press Register app
Under Add Firebase SDK
, copy the part inside
const firebaseConfig = {
};
and paste the code inside the file ReactFireChat/src/App.js (Line 12).
Finally, save the file and you can use it.