This commit is contained in:
Amos Haviv
2013-08-27 13:35:02 +03:00
2 changed files with 15 additions and 3 deletions

View File

@@ -34,11 +34,23 @@ MEAN is a boilerplate that provides a nice starting point for [MongoDB](http://w
When not using grunt you can use:
$ node server
Then open a browser and go to:
Then open a browser and go to:
http://localhost:3000
## Quick Deployment
4 commands to deploy your mean app to heroku,
Before you start make sure you have <a href="https://toolbelt.heroku.com/">heroku toolbelt</a> installed and an accessible mongo db instance - you can try <a href="http://www.mongohq.com/">mongohq</a> which have an easy setup )
```bash
git init
git add .
git commit -m "initial version"
heroku apps:create
git push heroku master
```
## Configuration
All configuration is specified in the [config](config/) folder, particularly the [config.js](config/config.js) file. Here you will need to specify your application name, database name, as well as hook up any social app keys if you want integration with Twitter, Facebook, GitHub or Google.

View File

@@ -56,7 +56,7 @@ module.exports = function(passport, config) {
},
function(token, tokenSecret, profile, done) {
User.findOne({
'twitter.id': profile.id
'twitter.id_str': profile.id
}, function(err, user) {
if (err) {
return done(err);