title: After setting the firebase I get the following error: Client doesn't have permission to access the desired data
body: <p>I just want to install the firbase as database, but contantly getting this error: </p>
  
  <pre><code>ERROR Error: permission_denied at /courses: Client doesn't have permission to access the desired data.
      at errorForServerCode (index.cjs.js:647)
      at onComplete (index.cjs.js:9114)
      at Object.onComplete (index.cjs.js:12681)
      at index.cjs.js:11797
      at PersistentConnection.push../node_modules/@firebase/database/dist/index.cjs.js.PersistentConnection.onDataMessage_ (index.cjs.js:12052)
      at Connection.push../node_modules/@firebase/database/dist/index.cjs.js.Connection.onDataMessage_ (index.cjs.js:11337)
      at Connection.push../node_modules/@firebase/database/dist/index.cjs.js.Connection.onPrimaryMessageReceived_ (index.cjs.js:11331)
      at WebSocketConnection.onMessage (index.cjs.js:11232)
      at WebSocketConnection.push../node_modules/@firebase/database/dist/index.cjs.js.WebSocketConnection.appendFrame_ (index.cjs.js:10837)
      at WebSocketConnection.push../node_modules/@firebase/database/dist/index.cjs.js.WebSocketConnection.handleIncomingFrame (index.cjs.js:10887)
  </code></pre>
  
  <p>app.module.ts</p>
  
  <pre><code>import { BrowserModule } from '@angular/platform-browser';
  import { NgModule } from '@angular/core';
  import { AngularFireModule } from 'angularfire2';
  import { AngularFireDatabaseModule } from 'angularfire2/database';
  import { environment } from '../environments/environment';
  
    imports: [
      BrowserModule,
      AngularFireModule.initializeApp(environment.firebase),
      AngularFireDatabaseModule,
    ]
  </code></pre>
  
  <p>app.component.ts</p>
  
  <pre><code>export class AppComponent implements OnInit {
    courses: Observable&lt;any&gt;;
  
    constructor(private _db: AngularFireDatabase) {}
  
    ngOnInit() {
      this.courses = this._db.list('/courses').valueChanges();
    }
  }
  </code></pre>
  
  <p>Just installed by</p>
  
  <pre><code>npm install firebase angularfire2 --save
  </code></pre>
  
  <p>didn't help</p>
  
  <pre><code>npm install firebase-tools --save
  firebase login
  firebase init
  </code></pre>
  
  <p>didn't help too</p>
  
  <p>file database.rules.json</p>
  
  <pre><code>{
    "rules": {
      ".read": "true",
      ".write": "true"
    }
  }
  </code></pre>
  
  <p>tab 'rules' on console.firebase.google.com site</p>
  
  <pre><code>service cloud.firestore {
    match /databases/{database}/documents {
      match /{document=**} {
        allow read, write: if true;
      }
    }
  }
  </code></pre>
  
  <p>Please tell me how to install correctly the firebase in Angular 6</p>