From c1ae64aea2a5571601a60c6376ebf0f63d3645a5 Mon Sep 17 00:00:00 2001 From: Qolzam Date: Sun, 9 Jul 2017 14:12:39 +0430 Subject: [PATCH] Imrove installation instruction --- docs/README.md | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/docs/README.md b/docs/README.md index a3ce24c..9ece0fc 100644 --- a/docs/README.md +++ b/docs/README.md @@ -63,13 +63,8 @@ I recommend that you get to know React before using React Social Network. React # Installing - 1. Installing all nodejs modules: - `npm install` - 2. Rub webpack to build bundle file - `webpack` - 3. Running server: - `node server.js` - 4. Configure firebase: +> You need to configure firbase first before starting other steps. We are using firebase storage to store files, firebase database to store user information and firebase authorization to authorize user with email and password. + 1. Configure firebase: - Get [firebase config](https://firebase.google.com/docs/web/setup) - Create a folder in root folder `react-blog` set the name `config` => `>react-blog\config` - Create three files in `>react-blog\config` set their name `development.env` , `test.env` and `production.env` => `>react-blog\config\development.env` and `>react-blog\config\test.env` @@ -82,6 +77,17 @@ I recommend that you get to know React before using React Social Network. React > STORAGE_BUCKET=[BUCKET].appspot.com
> MESSAGING_SENDER_ID=[SENDER_ID]HOST_URL
+ 2. [Enable Email/Password](https://firebase.google.com/docs/auth/web/password-auth) sign-in on firebase: + - In the Firebase console, open the Auth section. + - On the Sign in method tab, enable the Email/password sign-in method and click Save. + + 3. Installing all nodejs modules: + `npm install` + 4. Rub webpack to build bundle file + `webpack` + 5. Running server: + `node server.js` + # Warning - If you're using Windows you should install all node-gyp dependencies with following commands: