[TW5] Offline editing for wiki hosted under node.js

186 views
Skip to first unread message

Meta

unread,
May 4, 2015, 11:53:03 PM5/4/15
to tiddl...@googlegroups.com
Hi,

I'm using Tiddlywiki 5 for my dissertation research. It's a great improvement on the venerable original. I'm very pleased with it so far.

I run Tiddlywiki under node.js from a home server. I like how node.js stores my tiddlywiki as individual tiddlers and allows processing to be done server side, but I would like to be able to edit my wiki offline as well. Would the following work?
  1. Sync the server directory containing the tiddlywiki.info and .tid files folder with the client using cloud service like OwnCloud.
  2. Run a local node.js server on the client in order to edit the wiki.
The idea is that any changes made locally will be propogated to the server when the cloud service syncs, but the server's version will still be available to be edited online from other computers. Will this work?

While I'm at it: Are there any dangers in editing the .tid files directly using a text editor (assuming you don't mess up the syntax)?

Thank you!
Josh

Jeremy Ruston

unread,
May 7, 2015, 2:48:10 PM5/7/15
to TiddlyWiki, Meta
Hi Josh

If I'm understanding correctly, you'd like to be able to sync a wiki folder using a service like OwnCloud so that you can run the Node.js configuration on different machines, is that right?

That's possible, but requires some care: the filesystemadaptor module that handles syncing to the filesystem only works one way - it doesn't dynamically pick up changes made externally to the file system. So if you edit .tid files directly then you'll need to restart the server to see the effect in the browser.

So, the OwnCloud scenario requires you to make sure that only one instance of TiddlyWiki is running at any given time.

Best wishes

Jeremy




On Tue, May 5, 2015 at 4:53 AM, Meta <mende...@gmail.com> wrote:
Hi,

I'm using Tiddlywiki 5 for my dissertation research. It's a great improvement on the venerable original. I'm very pleased with it so far.

I run Tiddlywiki under node.js from a home server. I like how node.js stores my tiddlywiki as individual tiddlers and allows processing to be done server side, but I would like to be able to edit my wiki offline as well. Would the following work?
  1. Sync the server directory the tiddlywiki.info and .tid files with the client using cloud service like OwnCloud.
  1. Run a local node.js server on the client in order to edit the wiki.
The idea is that any changes made locally will be propogated to the server when the cloud service syncs, but the server's version will still be available to be edited online from other computers. Will this work?

While I'm at it: Are there any dangers in editing the .tid files directly using a text editor (assuming you don't mess up the syntax)?

Thank you!
Josh

--
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.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/45e86f01-88b0-4665-a9de-1227e87562bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Meta

unread,
May 12, 2015, 5:38:32 PM5/12/15
to tiddl...@googlegroups.com
Ah, I see. Thank you, Jeremy!
Reply all
Reply to author
Forward
0 new messages