I removed some components from the last recipe, and I just focused on the Phrases application. Let's create it by following these steps:
- Copy your project configuration and replace it in the file:
export const fbConfig = { ref: 'phrases', app: { apiKey: 'AIzaSyASppMJh_6QIGTeXVBeYszzz7iTNTADxRU', authDomain: 'codejobs-2240b.firebaseapp.com', databaseURL: 'https://codejobs-2240b.firebaseio.com', projectId: 'codejobs-2240b', storageBucket: 'codejobs-2240b.appspot.com', messagingSenderId: '278058258089' } };
- After this, we need to create a file to manage our Firebase database, and we will export our ref (our phrases table):
import firebase from 'firebase'; import { fbConfig } from '../../config/firebase'; ...