ng-fire-universal

Ship Angular + Firebase Apps to Google Cloud (Fast)

Stars
0

Ship Angular + Firebase Apps to the Cloud (Fast) » ng-fire.com

Quick Start

1. Install: npm run init

2. Setup Google Cloud:

3. Setup Firebase:

  • Create an account + project at firebase.com (use identical project names)

  • Add credentials to /firebase.ts (ignored by default in .gitignore):

  export const config = {
    apiKey: 'API_KEY',
    authDomain: 'APP_NAME.firebaseapp.com',
    databaseURL: 'https://APP_NAME.firebaseio.com',
    projectId: 'APP_NAME',
    storageBucket: 'APP_NAME.appspot.com',
    messagingSenderId: '123456789012'
    appId: '1:1234567890:web:1234567890'
  };

4. Publish: npm run publish

Commands

  • dev » Local Angular + Firebase Development w/ HMR

  • build:ssr » Compile Browser + Server Bundles

  • start or serve:ssr » Start Production Server w/ SSR

  • test » Start Jest Unit Testing

  • test:watch » Start Jest in Watch Mode

  • e2e » Launch Cypress End-to-End Testing [TODO]

  • deploy » Start Google Cloud Platform Release

  • deploy:functions » Start Firebase Cloud Functions Release

  • init » Setup Project + Install Dependencies

  • preview » Build + Start Local Server w/ SSR

  • publish » Build + Deploy to Google Cloud & Firebase

  • ship » Build + Deploy to Google Cloud

    (checkout package.json for more details)