> File-system Based Routing: If your code resides in ./api/login.js it's exposed at /api/login" rel="nofollow">http:// /api/login . Inspired by good ol' PHP days. > Auto Dependency Resolution: If a file does require('underscore'), it is automatically installed and resolved. You can always create your own package.json file to install a specific version of a package. This sounds like a security nightmare. EDIT: to be c…
Putting my money where my mouth is - use this to leak any file accessible by the running user of zero from the filesystem: # curl -v --path-as-is 127.0.0.1:3000/../../../../../etc/passwd root:x:0:0:root:/root:/bin/bash [...]
Show HN: Zero – A fast, zero-configuration server for React, Node.js, Markdown
201–210 of 256 posts
Re: Show HN: Zero – A fast, zero-configuration server for React, Node.js, Markdown
#202Make a RealWorld.io implementation or it doesn't exist! https://github.com/gothinkster/realworld
Re: Show HN: Zero – A fast, zero-configuration server for React, Node.js, Markdown
#203 const server = require('server');
server(() => "Place your Node.js API here.");
However my project doesn't have the automatic routing/installing/React, which looks great! Keep it up, I like the direction where this is going.Re: Show HN: Zero – A fast, zero-configuration server for React, Node.js, Markdown
#204"Zero configuration" But, you can install express, copy paste the getting started code and be up and running at a similar level in 5 minutes. I...guess I don't understand why I should trade something super simple and easy to use for this additional level of abstraction magic. There is such a thing as too much abstraction.
Once you get used to them it's easy, but to get started it's a nightmare. I started with PHP back in the day, and even though it's hated around here the bar to getting started there is amazingly low in a good way.
Re: Show HN: Zero – A fast, zero-configuration server for React, Node.js, Markdown
#205"Zero configuration" But, you can install express, copy paste the getting started code and be up and running at a similar level in 5 minutes. I...guess I don't understand why I should trade something super simple and easy to use for this additional level of abstraction magic. There is such a thing as too much abstraction.
No, you cannot, not in an easy way. I've taught many people Node.js/express and they always struggle with all of those copy/pasted configuration bits. Now if I add them, I tell them something along the lines This is just magic, copy/paste it to make your app work. Some day you will understand . Once you get used to them it's easy, but to get started it's a nightmare. I started with PHP back in the day, and even thoug…
I also teach sometimes and all this friction to get started just makes it harder to get into web development these days.
Re: Show HN: Zero – A fast, zero-configuration server for React, Node.js, Markdown
#206"Zero configuration" But, you can install express, copy paste the getting started code and be up and running at a similar level in 5 minutes. I...guess I don't understand why I should trade something super simple and easy to use for this additional level of abstraction magic. There is such a thing as too much abstraction.
No, you cannot, not in an easy way. I've taught many people Node.js/express and they always struggle with all of those copy/pasted configuration bits. Now if I add them, I tell them something along the lines This is just magic, copy/paste it to make your app work. Some day you will understand . Once you get used to them it's easy, but to get started it's a nightmare. I started with PHP back in the day, and even thoug…
Re: Show HN: Zero – A fast, zero-configuration server for React, Node.js, Markdown
#207Earlier quoted context omitted.
No, you cannot, not in an easy way. I've taught many people Node.js/express and they always struggle with all of those copy/pasted configuration bits. Now if I add them, I tell them something along the lines This is just magic, copy/paste it to make your app work. Some day you will understand . Once you get used to them it's easy, but to get started it's a nightmare. I started with PHP back in the day, and even thoug…
That feeling of discomfort and tinge of frustration means you're learning. I feel like this is helping people to skip over a really useful lesson.
I prefer those who are new to any webdev to get started by creating a simple CRUD, not with the grunt details like parsing a JSON body or what is this session stuff. Those IMHO should be optional optimization details to apply later on if you wish, but not mandatory for everyone.
Re: Show HN: Zero – A fast, zero-configuration server for React, Node.js, Markdown
#208Re: Show HN: Zero – A fast, zero-configuration server for React, Node.js, Markdown
#209Re: Show HN: Zero – A fast, zero-configuration server for React, Node.js, Markdown
#210"Zero configuration" But, you can install express, copy paste the getting started code and be up and running at a similar level in 5 minutes. I...guess I don't understand why I should trade something super simple and easy to use for this additional level of abstraction magic. There is such a thing as too much abstraction.
No, you cannot, not in an easy way. I've taught many people Node.js/express and they always struggle with all of those copy/pasted configuration bits. Now if I add them, I tell them something along the lines This is just magic, copy/paste it to make your app work. Some day you will understand . Once you get used to them it's easy, but to get started it's a nightmare. I started with PHP back in the day, and even thoug…
I learned very early on that if creating something in code means learning/entering cryptic code just to start (that is, before any work gets done), then you lose people very quickly. Inexperienced developers can easily express, "Hey if I click this button and a field has the word 'bubblegum', I want a popup to show", and likely can figure out the js necessary for it. But if you say, "Ok, before you write that javascript you have to configure a package.json and install all necessary pages, but also make sure your version of node is the correct version for our internal libs", their excitement to dive into a project is ruined.