mirror of
https://github.com/fazo96/homework.git
synced 2025-01-24 14:24:20 +01:00
updated docs
This commit is contained in:
parent
99be3a3723
commit
80c911d2a8
29
README.md
29
README.md
@ -28,19 +28,30 @@ You'll probably also need [phantomjs](http://phantomjs.org/) installed
|
|||||||
since the apps now depends on Meteor's
|
since the apps now depends on Meteor's
|
||||||
[spiderable](http://docs.meteor.com/#spiderable) package.
|
[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
|
```json
|
||||||
Meteor.startup ->
|
{
|
||||||
Accounts.loginServiceConfiguration.remove service : 'twitter'
|
"facebook": {
|
||||||
Accounts.loginServiceConfiguration.insert
|
"appId": "your_facebook_app_id",
|
||||||
service: 'twitter'
|
"secret": "your_facebook_app_secret"
|
||||||
consumerKey: 'Your API key'
|
},
|
||||||
secret: 'Your API 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
|
### License
|
||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user