Skip to content

Latest commit

 

History

History
50 lines (42 loc) · 1.86 KB

README.md

File metadata and controls

50 lines (42 loc) · 1.86 KB

ng2-firebase-simple-website

Sample Angular 2 project created with angular CLI with firebase integrated using angular fire2.

In this project I used Foundation framework instead of Bootstrap.

Project generated with angular-cli

  • run npm install
  • start local server with npm start

Sample db imports in folder _resources

Don't forget to change db rules

{
  "rules": {
    ".read": "auth != null",
    ".write": "auth != null"
  }
}

into

{
  "rules": {
    ".read": "true",
    ".write": "true"
  }
}

Add your firebase keys into ./src/app/app.module.ts

// Must export the config
export const firebaseConfig = {
  apiKey: '<your-key>',
  authDomain: '<your-project-authdomain>',
  databaseURL: '<your-database-URL>',
  storageBucket: '<your-storage-bucket>'
};

##List of interesting commits