4 ms·
I think the readme is missing a "why not" section. For example: why not use nginx instead, which more people have experience with.
by viraptor 8y ago
I think the readme is missing a "why not" section. For example: why not use nginx instead, which more people have experience with.
- Ayesh 8y ago"Because they can" is often the most fitting answer. Even a tiny feature is worthy to start a totally new project with a fancy name.
- viraptor 8y agoTo be precise, I meant "why not use ..." comparison. I don't mind why the project was started. Whatever the reason, well done for getting it to this stage! But the other side - why should we be interested - is interesting :-)
- pvorb 8y agoOne reason could be that it might be easier for node.js devs to read and understand its source code. I don't use the software nor have read its source code, though.
- de_watcher 8y agoSometimes I think that there are not enough of real problems to solve in the js world. Too many people pumped into a tight space of the frontend development are creating in there another copy of the whole infrastructure while limited by the tools that weren't designed for that.
- ricardobeat 8y agoNode was designed to build networking applications just like this.
- hamandcheese 8y agoNo, node was the realization that JS’s concurrency model could be applied to applications like this.
- tree_of_item 8y agoNo? You're not even disagreeing with the parent.
- hamandcheese 8y agoI am, but it is subtle.
- cheapsteak 8y agoConvenience is one I've used redbird to create a local dev proxy that can run be via npm scripts (which were already in the repo) so our engineering team didn't have to run the entire constellation of docker containers if they were only working on frontend code, and the only setup required was `npm install` which they already needed to do I do wish you could just `npm install nginx` though
- TheSmiddy 8y agohow would npm install nginx be different from [yum|apt] install nginx?
- diamondo25 8y agoIts a local installation, inside the folder, instead on the operating system. Also, other people will automatically install it when the package is saves inside the package.json or yarn file. You can also limit the version you want with these files, that the end user dont need to think about. Just yarn install :)
- 11235813213455 8y agoserv() { docker run --rm --name "nginx-${1:-8000}" -p "${1:-8000}:80" "${@:2}" -v $PWD:/usr/share/nginx/html:ro caub/nginx-dev; } this is what I do to run a local static server, you could run nginx with a config for proxying on docker as well also yarn.. bleh, just npm, nowadays it's even faster (on linux)
- 11235813213455 8y agosource of caub/nginx-dev: https://github.com/caub/docker-images/tree/master/nginx-dev https://github.com/caub/docker-images/tree/master/nginx-dev
- TomMarius 8y agoOn top of what others said, ease of use during (team) development through simplicity and consistency - some developers have Macs, some have Linux, some have Windows - and no one wants a work project altering their system anyhow.
- fulafel 8y agoOne reason might be that nginx is implemented in a memory-unsafe language.
- viraptor 8y agoAs opposed to node with runtime implemented in C++?