「Angular Firebase 構築手順」の版間の差分
ナビゲーションに移動
検索に移動
(→Config) |
(→Config) |
||
27行目: | 27行目: | ||
[[File:fire_base_condig01.png|400px]] | [[File:fire_base_condig01.png|400px]] | ||
− | [[File: | + | [[File:fire_base_condig02.png|400px]] |
<pre> | <pre> | ||
Config | Config |
2020年10月29日 (木) 23:29時点における版
Angular Firebase 構築手順
Firebase Hosting に Angular を統合して Firestore に接続
Angular
- project name : typea-info-service
$ npm install -g @angular/cli $ ng new typea-info-service ? Would you like to add Angular routing? Yes ? Which stylesheet format would you like to use? SCSS [ https://sass-lang.com/documentation/syntax#scss ] CREATE typea-info-service/README.md (1035 bytes) : $ ng serve
Firebase
$ cd typea-info-service $ firebase init
Config
- https://www.typea.info/blog/index.php/2020/04/04/firebase-hosting-firestore-release/
- Firebase Consoleの以下から取得
Config export const environment = { production: false, firebase: { apiKey: '<your-key>', authDomain: '<your-project-authdomain>',// {project-id}.firebaseapp.com databaseURL: '<your-database-URL>',// https://{project-id}.firebaseio.com projectId: '<your-project-id>', storageBucket: '<your-storage-bucket>',// {project-id}.appspot.com messagingSenderId: '<your-messaging-sender-id>' } };
© 2006 矢木浩人