Alternative to Node js for Win CE

北城余情 提交于 2019-12-25 09:04:04

问题


My requirement is run an embedded HTML\JS Web applications on a Win CE-ARM device.

We also have a Linux-ARM device for which we used Node js to run any Javascript app that also uses node modules like require,express and such.

Basically, we would like start a node server inside the device that serves HTML/JS pages as in when requested.

Since Win CE -ARM doesn't support node js and porting of node js to Win CE is an humongous task, we are looking for alternatives to node js in Win CE.

I looked up online and found very little on this front.

Basically we want to have a server running inside the device that serves html/js pages as in when requested( Imitate the node behaviour).

Is there any framework available for Win CE?

Any kind of comments or help is appreciated.

Thanks


回答1:


I am not aware of any frameworks that implement server-side Javascript on Windows CE (you can always serve html/js pages though, if that's what you're after).

Unless you do manage to find a third-party alternative, your options are limited to:

  • ISAPI extensions
  • ASP (note: not ASP.NET)

ISAPI extensions are written in C/C++, and are a comparatively primitive environment. This does not necessarily mean a bad environment - whether that's the case really depends on your requirements. We've used ISAPI extensions successfully in a number of products.

The ASP implementation in Windows CE is only a subset of what desktop IIS supports; the linked MSDN pages have all the details about this.




回答2:


If you don't want to use HTTPD WinCe webserver and to study how primitive and user unfriendly C++ ISAPI environment works, you could implement an extensible web-server in C# for example with RESTFUL webservices. Refer to this.

You can than use JQuery instead of ASP to create dynamic pages.

If you need also the browser on the device you can use the IESample bundled with WinCE.



来源:https://stackoverflow.com/questions/39747253/alternative-to-node-js-for-win-ce

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!