Routing Life Hacks: Serving a Node.js Express App from a Sub-Folder

Written by olekon86 | Published 2019/08/31
Tech Story Tags: javascript | nodejs | express | software-development | programming | routing-life-hacks | nodejs-express-app | latest-tech-stories

TLDR Express is probably the most popular web framework for Node.js and tons of tutorials and instructions have already been written. However, most of them don't cover the topic I am going to tell you about. A standard approach to routing that is seen across various docs looks like this: or this: "Routing structure probably looks somewhat similar to the picture below," but in real-world there might be a small problem. An actual catalogue for your application on hosting platform might be other than the domain root.via the TL;DR App

no story

Written by olekon86 | Software developer, Ethereum and beyond
Published by HackerNoon on 2019/08/31