The Inquiry:
How can I set up a live in-browser development server?
Background
Stackblitz and CodeSandbox are two platforms that offer online IDEs for building web applications. I am in a similar situation where I need to run an in-browser development server, but my search yielded limited results, except for a few key points.
Key Points
In their announcement article, Stackblitz mentions using "Progressive Web App API’s to run a live dev server in-browser."
For handling node dependencies, Stackblitz utilizes a custom npm client called turbo. The Github repository describes it as:
Express.js routes used for hydrating client-side dependencies and type definitions on StackBlitz.
- A module bundler is also utilized to support live development with hot-reloading.
I have a suspicion that Stackblitz runs an express.js server in the service worker, although I'm struggling to grasp the specifics. Any assistance or insights would be greatly appreciated.