Hacker News new | ask | show | jobs
by safeharbourio 3260 days ago
op couldnt be bothered to reverse proxy it behind nginx/{other load balancer}.
1 comments

or just redirect port 80 traffic to 3000 with iptables, it's one command.

sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000

Thank you for all advices. I'll host it properly. But what do you think about the library?
It took me a while from reading all the comments to realize that it's a client side library that stores state in the URL.

It's nice but I'm still not sure when to use it and why you made it.

Maybe you could add your personal use and motivation to it? Otherwise it's a clever library.

I just disagree with declaring paths with kind of regex pattern matching set of rules. This approach is flexible and natural. It will not stop you when your application became complex and even with simple cases it's faster - you touch less places in your code to make a change.