/firebase-notes

Test a simple Firebase notes application with Chai, Mocha, and Targaryen.

Primary LanguageJavaScript

firebase-notes

Test a simple Firebase notes application with Chai, Mocha and Targaryen.

Setup

  1. Install Node.js
  2. Create a project on Firebase and note down the Project ID
  3. Replace the project id in the .firebaserc with your Project ID
  4. Click Add Firebase to your web app and copy your Initialization Code
  5. Replace the initialization code in the environment/config.js with your Initialization Code
  6. Enable Email/Password & Anonymous sign-in providers in Authentication > SIGN-IN METHOD
  7. If using Travis CI:
    1. Create an account on Travis CI and activate your repository
    2. Execute npm install -g firebase-tools followed by firebase login:ci
    3. Add FIREBASE_TOKEN to Settings > Environment Variables

Install

npm install

Start

npm start

Test

npm test

firebase-notes-tests

Deploy

Command Line

Replace FIREBASE-PROJECT-ID with your Project ID and execute the following command.

export PROJECT=FIREBASE-PROJECT-ID && npm run deploy

Travis CI

Add [deploy] to you git commit message.

Learn More

Firebase Bolt

Firebase Realtime Database

Firebase Storage

Vue.js

VueFire

Vue Material