Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discussion: Deploying nodejs apps to end-users machine #11702

Closed
azev opened this issue Mar 5, 2017 · 3 comments
Closed

Discussion: Deploying nodejs apps to end-users machine #11702

azev opened this issue Mar 5, 2017 · 3 comments
Labels
invalid Issues and PRs that are invalid.

Comments

@azev
Copy link

azev commented Mar 5, 2017

Hello everyone,
I'm looking for a proper way to deploy NodeJS apps to end-users without having to bundle everything in one single package. Like a Stub, a small binary/script that will download all dependencies to the end-user's computer. (Eg. Firefox stub download)

Please refer to: http://stackoverflow.com/questions/42609945

Putting everything in a single package like some do is all wrong.
The user will be downloading a package containing the main app scripts + nodejs binary + node_modules dependencies. Which in the end, will all be outdated unless the developer/publisher keeps his package updated constantly. Not to mention a layman user wouldn't know how to handle the package.

Is it there a stub/script/wizard that does that?

The logic I think

  • Download the core script app (Only the actual script/app files without the node_modules folder)
  • Download latest nodejs binary (Eg: https://nodejs.org/dist/latest/win-x64/)
  • Silent set up nodejs, paths, environment variables and npm.
  • Download the node_modules described in package.json
  • Create a desktop shortcut (Eg: http://127.0.0.1/8000).
  • Possibly add an alias entry to app name instead of ip:port So the app can be accessed by its name on the browser.

I wrote two nice nodeJS apps but I don't know how to publish them properly.
Please, have your say!

@rumkin
Copy link
Contributor

rumkin commented Mar 5, 2017

Use electron. It's a shell for desktop applications.

@rumkin
Copy link
Contributor

rumkin commented Mar 5, 2017

And there is a better place for nodejs questions stackoverflow.com.

@mscdex
Copy link
Contributor

mscdex commented Mar 5, 2017

@rumkin is correct, this kind of general question is better suited for other places, such as the nodejs/help issue tracker. This issue tracker is for node core-specific bug reports, feature requests, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Issues and PRs that are invalid.
Projects
None yet
Development

No branches or pull requests

3 participants