项目作者: rajjejosefsson

项目描述 :
Angular 2 template with firebase and Material Design components
高级语言: JavaScript
项目地址: git://github.com/rajjejosefsson/ng2-firebase-template.git
创建时间: 2017-02-06T00:02:23Z
项目社区:https://github.com/rajjejosefsson/ng2-firebase-template

开源协议:

下载


r-ng2-firebase-template

Demo r-ng2-template










Usage

To download and use this project you need to have the following installed on your machine

When you have completed the above processes, run:
You can download this project directly or clone it using git
run the following command

  1. git clone https://github.com/rajjejosefsson/ng2-firebase-template
  2. ``

After downloading/cloning it
Change directory and run npm install
Run

  1. cd r-ng2-template
  2. npm install

to pull in the project dependencies.

After that, you need to update the app.module.ts located in src\app\app.module.ts to your own firebase credentials that you obtain in the firebase webpage console for the project
that will look like this:

  1. <script src="https://www.gstatic.com/firebasejs/3.3.0/firebase.js"></script>
  2. <script>
  3. // Initialize Firebase
  4. // TODO: Replace with your project's customized code snippet
  5. var config = {
  6. apiKey: "<API_KEY>",
  7. authDomain: "<PROJECT_ID>.firebaseapp.com",
  8. databaseURL: "https://<DATABASE_NAME>.firebaseio.com",
  9. storageBucket: "<BUCKET>.appspot.com",
  10. };
  11. firebase.initializeApp(config);
  12. </script>

That’s all, you are good to go.