Reputation: 1795
My question may be a little trivial since I am coming from Java background.
I have need the following with Node.js
I am also planning to use MeteorJS, does it have any implications? Do these libraries work well with each other?
I am not sure if my requirements are possible, please suggest. (may be with examples.)
Upvotes: 0
Views: 904
Reputation: 1706
https://github.com/ganarajpr/express-angular definitely covers a quite a few of your requirements and works out of the box as a seed for a web app.
It supports Google, facebook and twitter integration using everyauth.
To make posts to the a Facebook wall, you would only need the request module once you are authenticated
See http://runnable.com/UTlPM1-f2W1TAABY/post-on-facebook for a live demo
As for group based roles, there are multiple ways of implementing this:
Use https://github.com/ForbesLindesay/connect-roles, ex:
app.get('/', function (req, res) {
if (req.user.is('admin')) {
res.render('home/admin');
} else if (user.can('login')) {
res.render('home/login');
} else {
res.render('home');
}
})
Use regular express routing, for an example please see Group/rule-based authorization approach in node.js and express.js
Hope this helps.
Upvotes: 0