AngularJS + Firebase Starter template to kick start your new project. With the newest, Firebase Database and Firebase Auth, and Angular JS
Rather than use new Firebase(url)
like with the old SDK, you now configure firebase with firebase.initializeApp(config)
,
and use the new firebase.database().ref()
method.
// Initialize Firebase
var config = {
apiKey: "<YOUR-API-KEY>",
authDomain: "<YOUR-AUTH-DOMAIN>",
databaseURL: "<YOUR-DATABASE-URL>",
projectId: "<YOUR-PROJECT-ID>",
storageBucket: "<YOUR-STORAGE-BUCKET>",
messagingSenderId: "<YOUR-MESSANGING-SENDER-ID>"
};
firebase.initializeApp(config);
Before running this project you need npm already installed on your computer if you already have npm before then run this command
$ npm install -g firebase-tools
now it's time to install firebase into our npm system
$ firebase init # Generate a firebase.json (REQUIRED)
sync firebase to your firebase console account then copy the public folder to the public folder that has been generated firebase-cli earlier
now lets run our project
$ firebase serve # Start development server
Follow me on instagram :)
- Submit an issue describing your proposed change to the repo in question.
- The repo owner will respond to your issue promptly.
- Fork the desired repo, develop and test your code changes.
- Ensure that your code adheres to the existing style of the library to which you are contributing.
- Ensure that your code has an appropriate set of unit tests which all pass.
- Submit a pull request and cc @iqbal09