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?
Related
I am trying to link my mysql database with my react native application similar to React Native and Mysql Connection. The question I have is probably dumb but I cannot find an answer to it so.... how do I get my backend node js script which makes requests to my database to open automatically and run in the background as soon as the react native application is launched. I don't want the user to need to somehow open this script separately or run it on a computer on the network, I want to be able to use expo go on my phone to run my react native application and the node js script to automatically run in the background so I can grab data from it in my react native application. Is this even possible?
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.
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
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.
I have developed JavaFx application,i wanted to run it in browser but i am not getting executing it in browser instead i am getting executing it out of browser.I want to execute it within the browser for that i have code.html,w.jnlp,and executable jar.
On directly clicking either on jnlp or on executable jar ,it would work fine but my requirement is ,that application to be embedded into web browser and execute like web application.