Firebase integration - EGuillemot/Angular-test GitHub Wiki
In Firebase
Create a project in Firebase and click on 'Add an application' and 'Web'
In the application
npm install firebase
In src/app/app.component.ts, add :
import * as firebase from 'firebase';
...
export class AppComponent {
...
constructor() {
const config = {
<!-- Copy/Paste the given resources : -->
apiKey: ...
...
appId: ...
};
firebase.initializeApp(config);
}
}