<commit_before>auth-example
============

Example of social networks authentication with AngularJS and hello.js<commit_msg>README updated<commit_after>auth-example
============

Example of social networks authentication with AngularJS and hello.js


Note:
============

This example implements authentication via twitter only, you can find out how to add other networks in hello.js [documentation](http://adodson.com/hello.js/)

How to run:
============

At first need to register twitter app. Check this [link](http://iag.me/socialmedia/how-to-create-a-twitter-app-in-8-easy-steps/) to find out how to do that.

Next step is to add ```client_id``` from registered twiter app to ```dev/js/app.js``` file. Search for string:

```
hello.init({twitter: 'client_id_here'}
```

And replace ```client_id_here``` string.


Next step is to add ```client_id``` and ```client_secret``` to proxy server settings in ```server.js``` file. Search for:

```
oauthshim.init({
  'client_id_here' : 'client_secret_here'
});
```

And replace ```client_id_here``` and ```client_secret_here``` with your data.

Ok, then navigate in terminal to project folder and run:

Install server side dependencies
```
npm install
```


Install client side dependencies
```
bower install
```


Combine js files
```
gulp
```


Run the server
```
npm start
```

License:
============

[MIT License](http://opensource.org/licenses/MIT)
{'fraction_non_alphanumeric': 0.1659513590844063, 'fraction_numerical': 0.000715307582260372, 'mean_word_length': 5.030172413793103, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, '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': '7498275', 'n_tokens_mistral': 440, 'n_tokens_neox': 411, 'n_words': 144}