Getting Started using node.js ... TiddlyWiki is not connecting

86 views
Skip to first unread message

Fred Rasmussen

unread,
Nov 26, 2020, 9:18:23 AM11/26/20
to TiddlyWiki
When I tried following the instructions for 

Steps 1-4 went fine. I was able to confirm that TiddlyWiki was installed.

I got as far as Step 5: "Visit http://127.0.0.1:8080/ in your browser" where my Firefox browser came back with "unable to connect".

Just for a little background: I'm hoping to store my TiddlyWiki files on an SD card and swap it regularly between my desktop and laptop PC's. Cloud storage is not an option.


Mark S.

unread,
Nov 26, 2020, 9:50:16 AM11/26/20
to TiddlyWiki
What do you see in the terminal when running:

tiddlywiki mynewwiki --listen

(where mynewwiki is the name of your wiki).

Fred Rasmussen

unread,
Nov 26, 2020, 6:25:42 PM11/26/20
to TiddlyWiki
I get the following:
C:\Users\Fred>tiddlywiki mynewwiki --listen
 syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
Serving on http://127.0.0.1:8080
(press ctrl-C to exit)

Ha. I see that now when I navigate to the IP address, I see the new wiki page!
I tried adding a new tiddler and confirmed that the new tiddler has been saved!

I notice node.js is doing the work in whatever directory the command line goes to by default. If my goal is to sneeker-net myNewWiki between two separate PC's, should I perform the server tasks in the same removable drive path or does it make any difference? Seems to me all I need is a server with Node.js and a copy of TiddlyWiki running on each.

Thanks for your help today.

Joshua Fontany

unread,
Nov 27, 2020, 4:56:14 PM11/27/20
to TiddlyWiki
IF you have installed Tiddlywiki globally as a node.js package, you can invoke it with just "tiddlywiki" in the command (which it looks like you have done).

So, when starting the server on either device, you can have the "command line directory" set to anything you want if you pass the full (or relative) path from there to where your wiki is located. The below would be equivalent if your command prompt reads " C:\Users\Fred>  " as it does in your example.

tiddlywiki '../../Wikis/mynewwiki' --listen  
OR
tiddlywiki 'C:/Wikis/mynewwiki' --listen

If you do give the full path to your SD drive, then you are giving node.js permission to actively read/write from the SD card as your wiki changes. It might be better on your PC to have the wiki in a folder on your hard-drive, and then sync to and from the SD card when you want to sync the copies.

I use the Free File Sync app @ https://freefilesync.org/ to synchronize a set of QWikis between 2 PCs, by syncing to the Wikis folder to an external HDD, and then syncing that Wikis folder to the other PC's hard-drive.

Best,
Joshua F
Reply all
Reply to author
Forward
0 new messages