Skip to content

Commit

Permalink
Add dummy data to environment and remove it from util file
Browse files Browse the repository at this point in the history
  • Loading branch information
thepushkarp committed Sep 2, 2019
1 parent 7539a97 commit 63a055b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 22 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Expand Up @@ -49,6 +49,3 @@ Thumbs.db
#Firebase Patch
.runtimeconfig.json
.firebase/

# Firebase Config - Add Firebase configuration to this file
/util/keyConfig.ts
16 changes: 0 additions & 16 deletions README.md
Expand Up @@ -2,22 +2,6 @@

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.2.3.

## Adding Firebase Config

Add the Firebase Configuration to `util/keyConfig.ts`. You can find your project configuration in [the Firebase Console](https://console.firebase.google.com/). From the project overview page, click **Add Firebase** to your web app.

```ts
export const config = {
apiKey: "<your-key>",
authDomain: "<your-project-authdomain>",
databaseURL: "<your-database-URL>",
projectId: "<your-project-id>",
storageBucket: "<your-storage-bucket>",
messagingSenderId: "<your-messaging-sender-id>",
appId: "<your-app-id>"
}

```

## Development server

Expand Down
12 changes: 9 additions & 3 deletions src/environments/environment.ts
Expand Up @@ -2,11 +2,17 @@
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.

import { config } from '../../util/keyConfig';

export const environment = {
production: false,
firebaseConfig : config
firebaseConfig : {
apiKey: '<API_KEY>',
authDomain: '<PROJECT_ID>.firebaseapp.com',
databaseURL: 'https://<DATABASE_NAME>.firebaseio.com',
projectId: '<PROJECT_ID>',
storageBucket: '<BUCKET>.appspot.com',
messagingSenderId: '<SENDER_ID>',
appId: '<APP_ID>'
}
};

/*
Expand Down
Binary file removed util/localhost_4200_home.png
Binary file not shown.

0 comments on commit 63a055b

Please sign in to comment.