This is a test blogging Applicaton for Cool Developer Bangla youtube channel. Click here to subscribe Us.
This app is build using ReactJS, Node JS with Firebase as an database
-
Clone this repository in your local system.
-
Open the command prompt from your project directory and run the command
npm start
. -
Go to your browser and type
http://127.0.0.1:3000/
in the address bar.or
You can typelocalhost:3000
in the address bar . -
Create a
.env
file in your project level directory. -
Create a firebase project and then copy the credentials in
.env
file of your root directory likeREACT_APP_API_KEY = firebase_api_key... REACT_APP_PROJECT_ID = your_firebase_project_id REACT_APP_AUTH_DOMAIN = your_firebase_project_id.firebaseapp.com REACT_APP_STORAGE_BUCKET = your_firebase_project_id.appspot.com REACT_APP_MESSAGING_SENDER_ID = your_messaging id REACT_APP_APP_ID = your_app_id REACT_APP_MEASUREMENT_ID = your_measurement_id
-
Hurray! That's it.
-
Go to Firebase Console
-
Click add new Project.
-
Follow the On screen instructions.
Note: You donot need to copy the Firebase SDK file as they are included in this project
- Here is your credentials inside the
firebaseConfig
const firebaseConfig = {
apiKey: "firebase_api_key...",
projectId: "your_firebase_project_id",
authDomain: "your_firebase_project_id.firebaseapp.com",
storageBucket: "your_firebase_project_id.appspot.com",
messagingSenderId: "your_messaging id",
appId: "your_app_id",
measurementId: "your_measurement_id"
};
Donot paste the
"
or any,
in.env
file constants.This will create problems
-
Goto Authentication and enable Email sign in and Google Sign In for your project
-
Go to Firebse Firestore and then click Rules Tab and paste
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}
}
To clone this project
-
Install git for your Computer
Download git from here and install -
Goto the folder to computer your where you want to clone the project
-
Open
Terminal
(For Linux and Os X) orPowerShell
(for Windows) -
Paste this Command
git clone https://github.com/Soumodip-Paul/ReactWeb.git
-
This project is cloned in your device
- - created using react
- - Add a node backend.