Does anyone know if it's possible to run a tiny express server from MS Surface?
It is my understanding that the surface is just running Windows 10, so I can't think of a valid reason why it wouldn't work. This would be for a very small proof of concept application, so there isn't much that the server would be doing other than delivering very small http responses.
Does anyone have experience running a node app from MS Surface tablet?
Posted Nov 26, 2018, 12:29 AM UTC
It doesn't matter if it's a Surface or not. Node (and express) runs fine on any Windows machine and version. The same way it runs on other systems. The only thing you have to pay attention to is native/compiled modules that were written in a different language than JavaScript. But most likely they work just fine after a fresh
npm installon Windows.That was my instinctual feeling, but tablets can be weird sometimes. My server will only need to serve a react app and make udp requests, so there shouldn't be any native modules that need to be compiled. Thanks for the response
You mean Android and iOS tablets and such? Technically the Surface is more like a laptop computer with a detachable keyboard. I owned several versions but used them more like a workstation and development environment. It's not a typical form factor I think about using as a server - unless it's just one of its jobs. But personally I prefer separate devices for such jobs. But also I don't know what you're trying to do :)
I suppose that's what I meant. A more accurate statement would have been that Microsoft has historically released different versions of their operating systems where the lower tier versions do not have the same capabilities as the higher tier versions. I just wasn't sure if the surface used some sort of a lower tier OS that restricted application installation to the MS Store or some other restrictions.
I absolutely agree on the general scale of web servers. My use case is far less complicated. The server will only be accessed by the Surface directly. It just needs to serve a react application and provide api endpoints that will send UDP based socket messages to standalone network accessible relay. So it will be a server in the most technical definition. My fallback would have been a Raspberry Pi Nano W, which I also don't consider a production scale server for web usage :)
Thanks again for the info. I'll be sure to post a more detailed write up if the project takes off and the client gives me permission to provide some of the more technical details of the project.
Oh, right. There is Windows with "S mode" which only allows installation of MS Store apps. It's used on the Surface Go only (as far as I can tell). But this time it's just a setting and you can disable it. It's not a permanent restriction anymore. So don't worry about that one.
Ah, I see. I also do things like that as a replacement for desktop apps which I can't really develop.