diff --git a/src/app/app.module.ts b/src/app/app.module.ts index de5e54d..fdcda44 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -4,15 +4,22 @@ import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; +import { AngularFireModule } from '@angular/fire'; +import { AngularFireDatabaseModule } from '@angular/fire/database'; +import { environment } from '@env/environment'; + @NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, - BrowserAnimationsModule + BrowserAnimationsModule, + AngularFireModule.initializeApp(environment.firebaseConfig), + AngularFireDatabaseModule, ], providers: [], - bootstrap: [AppComponent] + bootstrap: [ AppComponent ] }) -export class AppModule { } +export class AppModule { +} diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index 3612073..9a290c9 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -1,3 +1,12 @@ export const environment = { - production: true + production: true, + firebaseConfig: { + apiKey: 'AIzaSyDe48emSyoXS3WV6vM4GjYiJwdcMhcspqY', + authDomain: 'disco-trip.firebaseapp.com', + databaseURL: 'https://disco-trip.firebaseio.com', + projectId: 'disco-trip', + storageBucket: 'disco-trip.appspot.com', + messagingSenderId: '113728943338', + appId: '1:113728943338:web:366dabcdff057858' + }, }; diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 7b4f817..13ab213 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -3,7 +3,16 @@ // The list of file replacements can be found in `angular.json`. export const environment = { - production: false + production: false, + firebaseConfig: { + apiKey: 'AIzaSyDe48emSyoXS3WV6vM4GjYiJwdcMhcspqY', + authDomain: 'disco-trip.firebaseapp.com', + databaseURL: 'https://disco-trip.firebaseio.com', + projectId: 'disco-trip', + storageBucket: 'disco-trip.appspot.com', + messagingSenderId: '113728943338', + appId: '1:113728943338:web:366dabcdff057858' + }, }; /* diff --git a/tsconfig.json b/tsconfig.json index 1f9e672..53ee76a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compileOnSave": false, "compilerOptions": { - "baseUrl": "./", + "baseUrl": "src", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, @@ -11,6 +11,7 @@ "experimentalDecorators": true, "importHelpers": true, "target": "es5", + "resolveJsonModule": true, "paths": { "@app/*": [ "app/*"