<commit_before># nodeFire
AngularFire with token authentication on node backend server

## Running Locally
* Run these commands to add the project locally
```shell
$ git clone https://github.com/LukeSchlangen/nodeFire
$ cd nodeFire
$ npm install
```
* Create a free Firebase account at https://firebase.google.com
* Create a project from your Firebase account console
* Click the “Add Firebase to your web app” icon
  * Copy the contents WITHOUT SCRIPT TAGS from the resulting popup into `public/config.js`. It should look like:
```javascript
  // Initialize Firebase
  var config = {
    apiKey: "<KEY>",
    authDomain: "XXXXXXXXXXXX.firebaseapp.com",
    databaseURL: "https://XXXXXXXXXXXX.firebaseio.com",
    storageBucket: "XXXXXXXXXXXX.appspot.com",
    messagingSenderId: "XXXXXXXXXX"
  };
  firebase.initializeApp(config);
```
* Follow the instructions in the first section `Add Firebase to your app` at this link to add firebase service account to your backend https://firebase.google.com/docs/server/setup#add_firebase_to_your_app
  * Rename the new json file to `firebase-service-account.json` and save it in the `server` folder of you application
* Configure google as an authentication provider for your Firebase project:
  * Firebase Console for Project -> Click Auth in Left Panel -> Click Set Up Sign-In Method Button -> Select Google -> Click the edit icon -> Toggle google to `on`<commit_msg>Fixing Typos<commit_after># nodeFire
AngularFire with token authentication on node backend server

## Running Locally
* Run these commands to add the project locally
```shell
$ git clone https://github.com/LukeSchlangen/nodeFire
$ cd nodeFire
$ npm install
```
* Create a free Firebase account at https://firebase.google.com
* Create a project from your Firebase account console
* Click the “Add Firebase to your web app” icon
  * Copy the contents WITHOUT SCRIPT TAGS or the CDN from the resulting popup into `public/config.js`. It should look like:
```javascript
  // Initialize Firebase
  var config = {
    apiKey: "<KEY>",
    authDomain: "XXXXXXXXXXXX.firebaseapp.com",
    databaseURL: "https://XXXXXXXXXXXX.firebaseio.com",
    storageBucket: "XXXXXXXXXXXX.appspot.com",
    messagingSenderId: "XXXXXXXXXX"
  };
  firebase.initializeApp(config);
```
* Follow the instructions in the first section `Add Firebase to your App` at this link to add firebase service account to your backend https://firebase.google.com/docs/server/setup#add_firebase_to_your_app
  * Rename the new json file to `firebase-service-account.json` and save it in the `server` folder of you application
* Configure google as an authentication provider for your Firebase project:
  * Firebase Console for Project -> Click Auth in Left Panel -> Click Set Up Sign-In Method Button -> Select Google -> Click the edit icon -> Toggle google to `on`
{'fraction_non_alphanumeric': 0.08545197740112995, 'fraction_numerical': 0.0, 'mean_word_length': 4.458574181117534, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 8, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2666136', 'n_tokens_mistral': 784, 'n_tokens_neox': 763, 'n_words': 323}