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,270 points

edited Aug 14, 2018 by Matt 748 views

1 answer to this question.

0 votes
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,240 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
• 8,620 points
3,170 views
0 votes
1 answer
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
• 8,620 points
2,043 views
0 votes
1 answer

Adding Windows 10 IoT Core to a Domain

Suppose your IP was 10.10.0.1, set-executionpolicy remotesigned import-module ...READ MORE

answered Mar 6, 2019 in IoT (Internet of Things) by Shubham
• 13,490 points
2,531 views
0 votes
1 answer
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,130 points
969 views
0 votes
1 answer

Create a Central Control System with Interactive Response Terminal

What you are looking is an Accordian ...READ MORE

answered Aug 21, 2018 in IoT (Internet of Things) by anonymous2
• 4,240 points
768 views
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
• 8,620 points
486 views
+1 vote
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,240 points
938 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP