========================================================
Install the npm package in project:
npm install
Run project:
npm start
Create .env file at root project. In .env file you will create firebase config variable (Get on firebase project).
REACT_APP_FIREBASE_API_KEY=.....
REACT_APP_FIREBASE_AUTH_DOMAIN=.....
REACT_APP_FIREBASE_PROJECT_ID=.....
REACT_APP_FIREBASE_DATABASE_URL=.....
REACT_APP_FIREBASE_STORAGE_BUCKET=.....
Notes: In React project the environment variable name must start with "REACT_APP_"
Create firebase real-time database on https://firebase.google.com/ (Follow the Firebase document)
Database structure:
+<--Project-name-databse-->
|
+--admins // the element of admin list can create room
| |
| +--<--key-object-->
| |
| +--email: <--email-->
| |
| +--id: <--object-id-->
|
+--totalRoom: 0