(This article also published in my public number "dotnet daily Essence article", Welcome to the right QR code to pay attention to. )
Over the next 10 years, the Internet of things will be as deep as the mobile web into all sides of our lives. So Microsoft is now investing heavily in the internet of things, such as Windows 10, which has a separate IoT version. And today's recommended article is to show you how to bring node. JS Development to Windows IoT.
At the early month Build conference, Microsoft released the Windows IoT Core Insider Preview, which can be installed on Raspberry Pi 2 (Raspberry Pi 2) and Intel's Minnowboard max. And there was also a speech about how to use node. js to develop an IoT solution for Windows IoT core. Today's article explains its background and the entire development process in detail.
Before node. JS didn't run on Windows WoA, Microsoft now integrates the Chakra JavaScript engine into Windows 10 and is optimized for WoA devices. so that node. js becomes one of the preferred languages for developing universal Windows Platform (UWP) (the so-called UWP, which can be run on PCs, tablets, mobile phones, XBox, HoloLens, IoT devices, just by writing a compilation once). To use node. js to develop applications for Windows IoT, you need to complete the following preparation steps:
- Install Windows IoT Core on your device
- Install Windows Insider Preview and Visual Studio RC on your PC
- Install Ntvs 1.1 Beta (node. js Tools for VS) and Ntvs IoT Extension Beta
- Connect to the device using PowerShell
Once you're ready, it's a breeze to develop a UWP application. Because Ntvs IoT Extension Beta provides you with a series of project templates to easily write code in VS 2015.
Microsoft has also prepared a NPM package called UWP for node. js to give you access to some of the UWP's APIs (that is, accessing the device's APIs). Microsoft has provided a sample Blinky (via a browser-controlled LED display on the device) to demonstrate how to access the UWP API. Debugging for node. JS is also supported in VS 2015.
Of course, the platform is still being perfected, and it is believed that the front-end developers will be able to easily develop IoT applications when Windows 10 is officially released. You can "read the original" to learn more about the content (especially many external links).
Original link: http://blogs.windows.com/buildingapps/2015/05/12/bringing-node-js-to-windows-10-iot-core/
Developing Windows 10 IoT applications with node. js