Create Node Js Executable App for Mac - node.js

I have a MEAN stack application running on my local laptop. I want to make an executable out of it which I can give to my other teammates so that they can install it on their laptop. My teammates will have mongoDB installed since my app is using mongodb. How can I create such an app. It would be great if while installing the app, it also installs node, express npm on one's laptop.
Please help!
Thanks!

One way to do it would be to use Electron. You don't need to use BrowserWindow if you don't need a GUI but Electron gives you nice tools to package and install your app on Mac, Windows and Linux.
Using Electron you could even make the frontend side of your app appear inside of a native window so that no web browser would be needed to access your application.
See:
http://electron.atom.io/docs/tutorial/application-distribution/
Other options:
https://jaredallard.me/nexe/
http://enclosejs.com/

Related

How to convert a Yii2 local website to a desktop executable?

I currently have a local basic Yii2 website with an external database on XAMPP. Is there a way I could convert this application to a native desktop application that can run on Windows and the Linux OS?
I wish to build the desktop app myself and not use automatic builders like Web2Desk
It'll come as an .exe file which can be run to install the app. The app would not need any 3rd-party software (for the database for example). I'm thinking kind of like the Slack desktop application.
Can you please help?

Errors getting node-oracledb to work with hardened macOS app

I'm trying to get the oracledb node package to work with an electron app. It works fine in development, but breaks when I generate a production build. I've traced this down to code signing / hardening process of macOS where the app cannot interact with the oracle drivers that are installed onto the user machine separately from the app. I've tried disabling the various entitlements but without much luck. Not sure if it's just not possible.
Seems a similar problem happens with the odbc npm package.

Can I run a Puppeteer.js scraper on a Windows Server without docker?

I have absolutely no experience using docker, but I'm trying to build a robust website scraper using Puppeteer.
Can I run it in a Windows Server 2003 environment running SQL Server 2008 R2 without having to go back and keep tweaking it later?
If yes, then how? Just as I would in a normal Node environment (i.e. NPM)?
I personally have no experience running puppeteer on windows, but I think you can do it connecting to a "remote instance of chromium" (in the same machine), the "browser" that launched puppeteer, this is the thing that have problems working in windows.
You can follow this examples to make this connection.
https://www.sitepen.com/blog/2017/10/04/browser-automation-with-puppeteer/
https://blog.rnsloan.com/2017/10/27/puppeteer-windows/
Let me know if this works.

How to check if particular software is installed or not on system using Electron?

I want to check if Chrome browser is installed or not when my electron app run. I want a solution which will work for all OS.

Deploy NodeJs Express App on Windows and Linux Server

I am developing a small project which contains few applications:
A node.js rest API
A node.js app that use socket.io.
A static app that server html js file to the client.
I am also using a MongoDb.
In few weeks, I'll have to deploy this app in production and I have some requirements that the app should be installed on windows and Linux server (Don't really know if it really matters).
I had a look at some tooling :
StrongLoop Process Manager
PM2
Forever
But cannot really find out if these tools are up to date or if there are better alternative in 2016 ?
Here are what seem to be the recommended ways that I've found:
Windows: iis-node (and this vid is helpful to get that going). Also note you'll need IIS 8x to support websockets.
Linux: PM2 to manage the process, and nginx for proxy server. This article has helpful step-by-step for Ubuntu.

Resources