| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

Angular Firebase 構築手順

提供: MyMemoWiki
2020年10月29日 (木) 23:19時点におけるPiroto (トーク | 投稿記録)による版 (→‎Config)
ナビゲーションに移動 検索に移動

| Angular | Firebase |

Angular Firebase 構築手順

Angular

  • project name : typea-info-service
  1. $ npm install -g @angular/cli
  2. $ ng new typea-info-service
  3. ? Would you like to add Angular routing? Yes
  4. ? Which stylesheet format would you like to use? SCSS [ https://sass-lang.com/documentation/syntax#scss
  5. ]
  6. CREATE typea-info-service/README.md (1035 bytes)
  7. :
  8. $ ng serve

Firebase

  1. $ cd typea-info-service
  2. $ firebase init

Config

  1. Config
  2. export const environment = {
  3. production: false,
  4. firebase: {
  5. apiKey: '<your-key>',
  6. authDomain: '<your-project-authdomain>',// {project-id}.firebaseapp.com
  7. databaseURL: '<your-database-URL>',// https://{project-id}.firebaseio.com
  8. projectId: '<your-project-id>',
  9. storageBucket: '<your-storage-bucket>',// {project-id}.appspot.com
  10. messagingSenderId: '<your-messaging-sender-id>'
  11. }
  12. };