How do we deploying NodeJs Express Rest API to Windows 10 IoT ?

0 votes

I am working on a project and given below is the specific details:

Node noob, Windows 10 IoT noob, senior .net dev here. I've been able to get a few of the samples to work, even got an led on a breadboard to be controllable through a nodejs server. I am using the latest chakra core files and have all of the packages installed on my dev machine, which is pretty clean.

I am guessing its not able to install the packages that are specified in the packages.json file, here is the excerpt:

"express": "~4.0.0", "morgan": "~1.0.0", "mongoose": "~3.6.13", "body-parser": "~1.0.1"

If it is the packages, how does one go about deploying nodejs applications with packages to windows iot? I considered just copying the application to the iot device and starting it manually, no luck. I also need the ms assemblies that allow me to interface code with the gpio.

I am now trying to get a simple rest api to windows 10 iot, and am having some trouble. I followed this tutorial, and its working if I use the non Universal Windows template on my machine. However, when I try to use this template (Basic Node.js Express 4 Application (Universal Windows)), and make it into the same application, the app is deployed, but the debugger fails, looking at the debug section of the windows 10 iot device, I have the following: Report signature

Package Full Name : test.iot.nodejs.express.njsproj_1.0.0.0_arm__b4gtp05xzgr10 Application Name : praid:App Application Version : 10.0.10586.63 Application Timestamp : 568b3d9f Fault Module Name : ucrtbase.dll Fault Module Version : 10.0.10586.63 Fault Module Timestamp : 568b34eb Exception Offset : 000351ed Exception Code : c0000409 Exception Data : 00000005 EventTime

January 26, 2016 at 10:22:17 PM PST

Link to Watson bucket

133280376927 FriendlyEventName

Stopped working

AppName

test.iot.nodejs.express.njsproj_b4gtp05xzgr10!App

AppPath

C:\windows\system32\backgroundTaskHost.exe

Any help is much appreciated. Thanks in advance.

Aug 13, 2018 in IoT (Internet of Things) by Matt
• 2,260 points

edited Aug 14, 2018 by Matt 31 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

You can take a look at this article blogs.windows.com/buildingapps/2015/05/12/… I am no expert in windows OS, but I would refrain from using nodejs on iot, given that the support is still limited and probably will stay limited

answered Aug 13, 2018 by anonymous2
• 4,260 points

Related Questions In IoT (Internet of Things)

0 votes
1 answer

How to deploy Windows 10 IoT (Rasp Pi image) as a Virtual Machine

The easiest way I found is downloading ...READ MORE

answered Sep 10, 2018 in IoT (Internet of Things) by Upasana
• 7,560 points
70 views
0 votes
1 answer

Azure IoT: Message from cloud to device using Rest API

Firstly, If you get No content response(error ...READ MORE

answered Dec 31, 2018 in IoT (Internet of Things) by Upasana
• 7,560 points
71 views
0 votes
1 answer

Adding Windows 10 IoT Core to a Domain

You could follow this link here to ...READ MORE

answered Mar 6 in IoT (Internet of Things) by Shubham
• 12,150 points
19 views
0 votes
1 answer

Setting time on Raspberry Pi using just PowerShell

The Enter-PSSession is for interactive sessions, so ...READ MORE

answered Aug 10, 2018 in IoT (Internet of Things) by nirvana
• 3,040 points
36 views
0 votes
1 answer
0 votes
1 answer

Naming my deployed application

Look in your Package.appxmanifest -- the name ...READ MORE

answered Sep 10, 2018 in IoT (Internet of Things) by Upasana
• 7,560 points
20 views
0 votes
1 answer

Configuring Raspberry Pi with Windows 10 IoT App using Rest API

You should use HttpClient instead of WebClient. Try ...READ MORE

answered Oct 10, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
62 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.