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'.
Related
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
I am just about to make a small instant messaging server.
I am thinking of using MongoDB, NodeJS, and Redis. Do you think it is a good choice?
What do you think about the model schema?
It's really a good choice. If I were you, I'd use socket.io, node.js, and mongoDB.
you can also use mongoose which is a model-based and It's much better.
MongoDB(Mongoose) is a good choice, because when you do a instant messaging application, it's a good choice (you will need ) to store data as documents.
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
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.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I would like to create a realtime chat phonegap app using nodejs for realtime. But I am not even sure whether it is possible or not.I am a newbie to nodejs. I really appreciate any answers.
There is a lot of solution to create a real time chat in node js.
I will advice following one of those tutorial that were really useful to me.
http://tutorialzine.com/2014/03/nodejs-private-webchat/
http://socket.io/get-started/chat/
Make it work locally on your web browser and it will need only little UI modification to make it work on devices. Hope this help.
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/ ).