Can node.js be portable with no internet connection

1,019 views
Skip to first unread message

Raymond McDowell

unread,
Oct 24, 2017, 8:27:40 PM10/24/17
to TiddlyWiki
Can node.js be set up as a  portable app. Please note I spend at least half my time with no Internet so any cloud based service won't work for me.

Thanks,

Ray

Arlen Beiler

unread,
Oct 24, 2017, 11:48:19 PM10/24/17
to TiddlyWiki
Absolutely. It has nothing to do with the internet and is restricted to the local computer itself by default. Everything is served off the computer you run it on, it does not need anything outside.

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/eda911ec-fb55-4167-b7fd-dd6efe1cc09b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raymond McDowell

unread,
Oct 25, 2017, 5:27:43 AM10/25/17
to TiddlyWiki
Thanks for the information. Now can you advise how to do this. I need to set up a dedicated folder for it that can run from a thumb drive and be accessed from multiple pcs and android devices.  Thanks.

Arlen Beiler

unread,
Oct 25, 2017, 7:36:10 AM10/25/17
to TiddlyWiki
I recommend using TiddlyServer (https://github.com/Arlen22/TiddlyServer). It works the same as NodeJS, but allows you to edit more than one wiki and lets you serve static files. It's very simple to use once you understand it, but I'm not sure if my explanations of the installation instructions are that simple yet :) Since I'm the one that made it, I have the entire thing stored it my head and can give you detailed answers with a little digging, but to give simple answers is where I struggle :)

First, you either need Node installed on each computer or copied onto the USB stick. If all your computers are Windows computers, then that's all you need. 

You can download Node from https://nodejs.org/en/download/
  • If you want it installed on each computer, download the installer and do so. This is the easiest way to go if all the computers are your own. 
  • If you want it on the USB stick, download the binary (which is a zip). Hang onto it for now, we'll use it soon.
Download TiddlyServer-2.0.8-bundled.zip from https://github.com/Arlen22/TiddlyServer/releases/tag/2.0.8

Extract the folder it contains to wherever you want it. On Windows, you can just open the zip file and drag the folder inside it over to the USB drive. 

Download example-settings-simple.json from https://github.com/Arlen22/TiddlyServer/releases/tag/2.0.8 and place it in the folder. Rename it to settings.json

Create a folder next to the folder you just extracted and call it data. This is the folder your settings.json file points to. If you are comfortable with editing JSON, you can easily change the folder path or add more folders. The readme contains a detailed explanation of the settings.json file at https://github.com/Arlen22/TiddlyServer/tree/2.0.8#settingsjson

The two main reasons people like TiddlyServer over TiddlyWiki on NodeJS is that you can edit multiple TiddlyWiki data folders at once, and you can serve static files along side them. It is not possible to serve static files using TiddlyWiki on NodeJS.

Hope that helps. If someone else wants to suggest something as well, feel free to. 
Arlen

On Wed, Oct 25, 2017 at 5:27 AM, Raymond McDowell <mcdow...@gmail.com> wrote:
Thanks for the information. Now can you advise how to do this. I need to set up a dedicated folder for it that can run from a thumb drive and be accessed from multiple pcs and android devices.  Thanks.

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Raymond McDowell

unread,
Nov 28, 2017, 9:17:24 PM11/28/17
to TiddlyWiki
Thanks for the directions. I note the instruction "If you want it on the USB stick, download the binary (which is a zip). Hang onto it for now, we'll use it soon."

You didn't say how we should use it. Did I miss something?


On Wednesday, October 25, 2017 at 7:36:10 PM UTC+8, Arlen Beiler wrote:
I recommend using TiddlyServer (https://github.com/Arlen22/TiddlyServer). It works the same as NodeJS, but allows you to edit more than one wiki and lets you serve static files. It's very simple to use once you understand it, but I'm not sure if my explanations of the installation instructions are that simple yet :) Since I'm the one that made it, I have the entire thing stored it my head and can give you detailed answers with a little digging, but to give simple answers is where I struggle :)

First, you either need Node installed on each computer or copied onto the USB stick. If all your computers are Windows computers, then that's all you need. 

You can download Node from https://nodejs.org/en/download/
  • If you want it installed on each computer, download the installer and do so. This is the easiest way to go if all the computers are your own. 
  • If you want it on the USB stick, download the binary (which is a zip). Hang onto it for now, we'll use it soon.
Download TiddlyServer-2.0.8-bundled.zip from https://github.com/Arlen22/TiddlyServer/releases/tag/2.0.8

Extract the folder it contains to wherever you want it. On Windows, you can just open the zip file and drag the folder inside it over to the USB drive. 

Download example-settings-simple.json from https://github.com/Arlen22/TiddlyServer/releases/tag/2.0.8 and place it in the folder. Rename it to settings.json

Create a folder next to the folder you just extracted and call it data. This is the folder your settings.json file points to. If you are comfortable with editing JSON, you can easily change the folder path or add more folders. The readme contains a detailed explanation of the settings.json file at https://github.com/Arlen22/TiddlyServer/tree/2.0.8#settingsjson

The two main reasons people like TiddlyServer over TiddlyWiki on NodeJS is that you can edit multiple TiddlyWiki data folders at once, and you can serve static files along side them. It is not possible to serve static files using TiddlyWiki on NodeJS.

Hope that helps. If someone else wants to suggest something as well, feel free to. 
Arlen
On Wed, Oct 25, 2017 at 5:27 AM, Raymond McDowell <mcdow...@gmail.com> wrote:
Thanks for the information. Now can you advise how to do this. I need to set up a dedicated folder for it that can run from a thumb drive and be accessed from multiple pcs and android devices.  Thanks.

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.

Arlen Beiler

unread,
Dec 2, 2017, 4:14:34 AM12/2/17
to TiddlyWiki
Open the zip file and look for node.exe for a Windows binary or just plain node for a Linux binary, and copy it into the TiddlyServer folder. Sorry for the oversight.

To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
Reply all
Reply to author
Forward
0 new messages