Skip to content

Commit

Permalink
Elgervb/issue123 (#127)
Browse files Browse the repository at this point in the history
* use firebase
Fixes #123

* #123 git settings

---------

Co-authored-by: Elger van Boxtel <[email protected]>
  • Loading branch information
elgervb and elgervb authored Oct 26, 2023
1 parent 68e2338 commit 7dbc10b
Show file tree
Hide file tree
Showing 6 changed files with 850 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ testem.log
# System files
.DS_Store
Thumbs.db

# Firebase
.firebase
*-debug.log
.runtimeconfig.json
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"githubPullRequests.defaultMergeMethod": "squash"
}
1 change: 1 addition & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@angular/common": "^16.2.0",
"@angular/compiler": "^16.2.0",
"@angular/core": "^16.2.0",
"@angular/fire": "16.0.0",
"@angular/forms": "^16.2.0",
"@angular/material": "16.2.4",
"@angular/platform-browser": "^16.2.0",
Expand All @@ -41,4 +42,4 @@
"karma-jasmine-html-reporter": "~2.1.0",
"typescript": "~5.1.3"
}
}
}
8 changes: 7 additions & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { ServiceWorkerModule } from '@angular/service-worker';
import { RouterModule } from '@angular/router';
import { MatSnackBarModule } from '@angular/material/snack-bar';
import { initializeApp, provideFirebaseApp } from '@angular/fire/app';
import { getAuth, provideAuth } from '@angular/fire/auth';
import { getDatabase, provideDatabase } from '@angular/fire/database';

@NgModule({
declarations: [
Expand All @@ -23,7 +26,10 @@ import { MatSnackBarModule } from '@angular/material/snack-bar';
// or after 30 seconds (whichever comes first).
registrationStrategy: 'registerWhenStable:30000'
}),
RouterModule
RouterModule,
provideFirebaseApp(() => initializeApp({"projectId":"beez-6f2c5","appId":"1:280318214840:web:c054a3e372247afc432a4d","storageBucket":"beez-6f2c5.appspot.com","apiKey":"AIzaSyDky1CHqZKZ-GyE6O3RNXILNydBZIBVAHI","authDomain":"beez-6f2c5.firebaseapp.com","messagingSenderId":"280318214840","measurementId":"G-XDN9847E53"})), // "locationId":"europe-west",
provideAuth(() => getAuth()),
provideDatabase(() => getDatabase())
],
providers: [],
bootstrap: [AppComponent]
Expand Down
Loading

0 comments on commit 7dbc10b

Please sign in to comment.