Wether to use passport library or not? [closed] - node.js

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
Am trying to get Facebook and google login functionality integrated in my node.js app.
I have heard of passport library but has never used it. Can anybody help me,whether to use this library or write the code without it?
link for passport lib:- http://passportjs.org/docs/facebook
if suggesting passport library,kindly share its pros and cons.
TIA.

Everything is basically already done for you with Passport. I would say that and the fact that it has a huge community behind it is it's biggest advantages. If you need an example how to do it (and how easy it is) I recommend from this article on scotch.io

Related

Node.js for Backend [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
What is the best way to learn practical Node.js?
I want to be a Node.js developer.
All the courses I found on the Internet (paid or unpaid) seems to have little to very basic knowledge of Node.
These courses are unable to full fill my thirst for knowledge.
Kindly recommend me a good source to learn Node.js.
Yes I am asking for your Opinion.
Read the documentation and learn the best practices. Once you learn to control the flow, you can do anything with it. My suggestion would be to find a problem statement and try to solve that using Node.

Why should I use PassportJS? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
Looking in to making a simple Angular - Node app and of course I have come across PassportJS for auth. Looking at the website, I'm finding it difficult to understand why I need it or what it does for me?
My users will login using a username and password. Why can't I just find a matching record in the db, set a session if required and return a response? Why should/would I use Passport for this?
No real reason, if that's all you want to do. Using passport starts to pay off when you start incorporating other authorization providers, such as Facebook, Twitter, google, etc.

Do I need to minify my js file if i am doing winjs development? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
Is it possible for someone to look at the javascript code of a winjs app? Is it recommended to minify the js code for a winjs application? any other best practices?
I found this link but it did not help much. It refers to a sticky post. I looked at the sticky posts but they appeared to be unrelated.
Minification is just one strategy you can employ, depending on your needs. I wrote about this and other options on my blog: http://www.kraigbrockschmidt.com/2013/04/04/protecting-your-code/.
While in development use the unminified file so it easier to debug, on production it is recommended to use the minified file, and also as the sticky post said You can also protect your more sensitive algorithms and business logic from reverse engineering by putting them on a server and not in your app.

node-static vs express.static [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am trying to set up a static file server/cache in Node.js. I use Express.js.
Express comes in with a built-in static server, and Express is definitely one of the most used frameworks, and so one would expect the static middleware to be super reliable.
However, I look around the internet and find that tons of people, including Nodejitsu, recommend the node-static npm module.
I try to do some kind of comparative research between the two but don't find much.
Is there really any difference? I would like to use Express.static, as I am already using Express, but want to make the right choice.
This isn't an opinion war post, I am just looking for comparatives of features from those who know what they are talking about, not 'favorites'.

Is it recommended to build a forum using node.js? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I've heard that node.js is really fast for applications like chats and real time apps.
I was wondering if node is a good choice to develop a forum or a q&a site like StackOverflow?
Yes it's perfectly possible, you don't have to implement your own web server like somebody said, you can just create it using something like Express (as a framework) and Mongoose (as a MongoDB ORM) or whatever you choose.
I think Node.js is a good solution for such a case because of its high concurrency (and Stack Overflow is a site where thousands of users are online in the same time probably). So yes you can achieve this with PHP, Ruby and Python etc, but I believe Node.js is a better fit (that's my opinion, based on the success stories I've heard which were based on Node).
Node isn't just a solution for building small services, here are some good examples ( https://nodejs.org/en/blog/uncategorized/an-easy-way-to-build-scalable-network-programs/ ).

Resources