Serves (and saves) your Classic TiddlyWiki from your Dropbox or other type of shared folder.
- Supports viewing and saving multiple TiddlyWikis without browser plugins
- Protects against overwriting changes from other sources accessing the same wiki (e.g. phone apps, other browser windows)
- Should run on any OS with Node support
- Requires a recent version of Node and NPM.
- Only works with Classic TiddlyWiki. Latest version available on Git.
git clone https://github.com/fallwest/tiddly-node-saver.git
Alternatively, you can download files without Git.
Run the following command under the root directory:
npm install
Replace the Dropbox (or other kind of shared folder) path in config.json
with the path to the folder where your Tiddlywiki html files live:
{
"dropBoxFolder" : "C:\\Users\\user\\Dropbox\\Apps\\Quine",
"extraFolders" : ["images", "files"],
"port" : 8083
}
- Add any extra folders for files or images that you reference in your wiki to the
extraFolders
array - Change the port number this server runs on if you need to.
- Run command
node server.js
to start server - Navigate to
http://localhost:8083/yourtiddlywiki.html
to view your wiki (be sure to use the name of your own tiddlywiki instead ofyourtiddlywiki.html
)
- Download NSSM or install with Chocolatey
- Run command
nssm install tiddlysaver
- Fill in the form with the following values:
Click the "Install service" button and then start the "tiddlysaver" process. The process should henceforth start automatically as a service.
- Use pm2 to set up Node to automatically start server.js. Follow directions here: manage-application-with-pm2
- If the TiddlyWiki "save changes" button does not appear when you first navigate to your TiddlyWiki in your browser, try refreshing the page. The button should then always appear.
- The first time you load, try loading your wiki with browser caching turned off (easiest way, have developer console open - F12 key) to ensure that you get a fresh copy of your wiki back from the server.