1
0
mirror of https://github.com/fazo96/homework.git synced 2025-01-09 12:10:08 +01:00

updated docs

This commit is contained in:
Enrico Fasoli 2015-03-02 16:37:40 +01:00
parent 99be3a3723
commit 80c911d2a8

View File

@ -28,19 +28,30 @@ You'll probably also need [phantomjs](http://phantomjs.org/) installed
since the apps now depends on Meteor's
[spiderable](http://docs.meteor.com/#spiderable) package.
#### Twitter Authentication
#### Twitter and/or Facebook Authentication
Create this file: `server/settings.coffee` with this content:
Create a `.json` file with this content:
```coffeescript
Meteor.startup ->
Accounts.loginServiceConfiguration.remove service : 'twitter'
Accounts.loginServiceConfiguration.insert
service: 'twitter'
consumerKey: 'Your API key'
secret: 'Your API secret'
```json
{
"facebook": {
"appId": "your_facebook_app_id",
"secret": "your_facebook_app_secret"
},
"twitter": {
"consumerKey": "your_twitter_app_token",
"secret": "your_facebook_app_secret"
}
}
```
Then run or deploy your application using the `meteor` argument `--settings`
followed by a space and the path to your json file.
__Example:__ `meteor --settings file.json` or `meteor deploy homework --settings file.json`
The application will automatically adapt and show login buttons as needed.
### License
The MIT License (MIT)