How do i convert MERN web app to desktop app?

Viewed 1179

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?

1 Answers

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.

Related