I know that SWUpdate has its own embedded web server with which is possible to upload the image file for the upgrade.
I already realized a small web page with Node.js that I use to do some configuration on my board, and I would like to know if would be possible to add in it my own web page for upgrading the software, just like embedded SWUpdate web server does. In short, I would like to integrate a webpage for the upgrade in my node.js web server, instead of use the standard one.
I suppose I should use a specific protocol to make my custom web page to be "transparent" to the board.
Is it possible? Has someone already tried? Thanks
Related
I'm starting out on my Node.JS journey and I discovered a fantastic boilerplate over at https://github.com/azouaoui-med/pro-sidebar-template. I'm unsure though how to turn the static html into a web app. Just wondering how someone with more experience would do this?
Do I take the html and translate it into a PUG template file? I'm guessing to then make the onclick / links actually run some code, i'd need to point them at the routes setup in the web app?
Sorry to ask such inexperienced questions, web apps seem to take a vastly different approach to the desktop apps i'm familiar with programming
I'm wanting to create a web app that runs on a server, which I will later put on the desktop via electron.
thanks
The project you have is using browser-sync which indirectly uses NodeJS to run a local server and host the web application files.
Do I take the HTML and translate it into a PUG template file?
I am not sure about this question unless you specifically want to use server-side rendering I am not sure I would recommend this to start with especially if you plan to later convert this to a desktop application.
[Note* - Assuming you are referencing this library PUGJS in statements above ]
Now For this requirement I'm wanting to create a web app that runs on a server, which I will later put on the desktop via electron.
This will require you to make your data serving layer which is most commonly called backend separate from that of the data viewing layer which is most commonly referred to as front-end. Thus a case for using the same data layer across different types of clients viz. A web application and/or A desktop application ( electron if you choose so )
Step 1 - Define what sort of web application architecture you want to follow or use. This will be based on your project and business requirements. From what information I have so far I would suggest a simple client-server architecture where your frontend or web-application is the client which makes REST API calls to the backend (API Server) and thus produces a meaningful result.
Step 2 - Start with the creation of 2 projects a frontend where your HTML, CSS JS, etc will be and a simple NodeJS script to serve this static web app when deployed on the server. I am going with NodeJS since the context of this question is suggesting the same.
Step 3 - The other project which will only be an API Server or Backend. This server will provide only REST API to the frontend. This server will talk to the database and provide other services like authentication and logging etc. You can use expressJS for this also in the frontend project.
Here is a simplistic representation of the client-server model which you can reference.
Some additional links for you to digest.
What is the difference between a web application and a client/server application?
https://medium.com/codiumclub/web-application-architecture-part-1-guide-to-become-full-stack-developer-cc9526a3519b
Is it possible to include the google assistant into my local web application so that everyone can use it? I've got a JSF-Application that runs on a local tomcat 7 server. My goal is to change the views by voice. I want to do it with the google assistant sdk.
There is the service sdk (python, all functions) and the library sdk(gPRC (java), general function). I tried the java-client, but the hotword detection only works for the service sdk. I need the hotword detection.
Can I run the service python google assistant and my jsf-app on one tomcat server? I can't get my head around it and need your help.
This is only the first step to my goal. Have you any suggestions?
Hotword detection would be non-trivial to implement. A web application contains two parts: a client, which would be the web browser, and the server, which is your local tomcat server.
Web apps basically work with multiple clients communicating to one server through HTTP requests, primarily through Javascript. Your server then processes this, and the cool thing is that the server can be any language you want.
However, the client cannot directly interact with server-side code. This means that locally running feature like hotword detection on the server cannot be directly controlled by the client. You'd need to use a client-side hotword detection library, which would presumably need to be written in Javascript.
I created a simple web site using WIX platform. (https://www.wix.com/). I have some simple forms. Like customer registration and package management. All the UI part is done. And I have a Node.JS server to manage customers and packages. API is 100% done.
Now I need to connect WIX template with my NOde.JS REST API. Is there any possible ways to do this ?
My Node Server is deployed on a Ubuntu server and I can access it anywhere.
Please help me on this.
Yes, now Wix has this thing called Wix Code platform, which enables you to dynamically control your UI components and bind it to data coming from the outside.
To answer your question, they have this fetch API which you can use to write code to fetch your own server and get the data from it. Here is a link Wix Code API - fetch
Anyway, this is their site, Wix Code, you may learn a lot more there. Also they have those tutorials and examples of many "how to..." and examples Wix Code Tutorials and Videos
Cheers!
More specifically, I have a QWebView inside my Qt application and would like Node.JS to run inside pages displayed inside it. I have a bridge between the web view and my application, so I'm able to run Javascript commands inside the web view which communicate with the application.
I'm wondering if it's possible to make Node.JS available to the web view to use?
Node.js typically starts up a web server of sorts, at least in some of the applications I've tried. So accessing the localhost with the appropriate port name should not be a problem.
So basically, start Node.js on port 9000 for example, then open the webview to http://localhost:9000/ and you should be good to go. If you want to have a headless way to access the webserver or its sockets or rest/soap interfaces, you should be able to do it pretty easily with the QNetworkAccessManager class and its related support classes.
Hope that helps.
I am currently working on a Three.js based WebGL project and I need to get a screenshot of a given model quickly when needed.
I have implemented some JavaScript code that will render a 3D model then return a picture of it. But the problem is that the JavaScript code runs at client side, but I need it to make it server-side, so I can get the picture by a URL (such as example.com/get-screenshot.php?id=2) and serve it to my users.
I am wondering if there is a mechanism that will automatically trigger the job and return what I need. Besides the server that hosts my site, which is Azure website, I also have access to an Azure virtual machine with Windows Server or Ubuntu Server installed; I don't know if it helps.
Thanks in advance.
Your WebGL code needs a GPU to run; Amazon recently introduced a GPU instance to EC2, but Azure currently does not have that option.
The next release of the Verold platform gives you a full Three.js editor with hosting options for your web 3D desktop and mobile apps. You will be able to implement this usecase on our platform. Send an email to info#verold.com for details.
Ross
You can try use phantomjs with grunt and node to genarate those images.
phantomjs can simulate a full stack browser enironment, and can run on server side.