creating desktop exe application with node js code - node.js

I have developed a node js dashboard which runs on localhost. Now I want to convert that dashboard to the desktop application file and installer so that whenever the client wants to use the dashboard there is no need to enter the url in browser he can just open the application and use the dashboard.
Is there any third party application for this conversion like we have EXE PHP output application like that

Related

run exe file from react js

I am totally new to React Js. I want to open a windows application / .exe file with the click of the web component. For e.g open whatapp.exe when we click on the button component from the web page created in react js. I found some other links but am not sure how to apply those solutions or they are relevant or not.
E.g:
Execute an exe file using node.js
How to execute an external program from within Node.js?
Is my question is correct? can we do it like this or not?

How can I convert a Node Js web application to a desktop application?

I have created a Node js Web application which is running on an express server. It is a web automation application which is made using puppeteer. I want this app to run in headful mode which is not possible if I deploy this on servers (for eg Heroku). So instead of deploying this application,I wanted to create a desktop app which runs this application on the local host everytime. Is there any way to convert this web application to a desktop application and run it on local host through the desktop app only?
Your best bet would be using Electron.
It is used for cross-platform apps with Nodejs and interacts like website, so you wouldn't need to rebuilt your app from scratch.

How do i convert MERN web app to desktop app?

I have created a simple billing web application using Node, Express, React and MongoDB
However i want to convert it into a Desktop application for local machines.
I know it is possible using electron, but i don't know how to do it.
Can anyone help me or provide with necessary resource?
you can use this boilerplate to get start a new project with react and electron.
Your build HTML file will act as the view file for your electron app.Which should be build by react-scripts.Use express server in separate file and use the server.
Handle requests just like you do in a MERN app.you only need to set the view to the bundled HTML file.

How Do I Execute System Scripts from Within a Reactjs Project?

I have a React project where I want to execute a server side bash script when a user clicks a button. This script would then run and return some output to be displayed back to the user. I know that NodeJS has a way to spawn or exec a particular command, but I'm not sure how I can take advantage of these features inside my React project.
Does anyone know how to accomplish this?
What you can do is create a web service, that you will call with your React JS application. This web service will execute the script directly on the server and when it's done you can return data to display on your React JS application.
React runs in the browser, and with a purely remotely-served website there is no direct way to run a client-side bash script (that would be a major security issue). To run a bash script you need to run a native application on the client, which could then connect directly to your back end or be triggered via the nativeMessaging API. Alternately you could use a framework like Electron or NW.js to turn your React app into a native app, rather than running in the browser.

Building Single Page Application without doing any Server Side Development

I am new to any JS framework and hence I am planning to build a SPA without using any Server Side Development using Ebmer.js. Since everything need to be done at the client side, can it be done without using node.Js which does provide some server side functionality ?
Basically I would like to build a login page functionality so that user can login only when they have provided correct credentials.
To build a SPA, you can go through different framework like jQuery Mobile, Sencha Touch which are AJAX based completely and needs a server. To simulate a server and to handle AJAX request you need to host a local server. Sencha has provided Sencha CMD 5.x which you can install in any system (Windows, MAC, Linux). After installing this software you just have to browse to the folder which you want to deploy on the server.
.
Open Command prompt or terminal,and type the command sencha web start.
After this you can access your application through a local server hosted on port:1841.
You will get an access to your file system as shown below.
And the result is like

Resources