Expose your TiddlyWiki throughout your home


If you have a TiddlyWiki site that you want to be able to access throughout your home on computers, smartphones and tablets the easiest approach is as follows:

Create a Node WebServer

  • Install NodeJS
brew install node
  • Navigate to your tiddlywiki page
cd <tiddlywiki folder>
npm init
npm install express --save
touch server.js
  • Edit server.js as follows:
var express = require('express');
var app = express();
var path = require('path');

// viewed at http://localhost:8080
app.get('/', function(req, res) {
    res.sendFile(path.join(__dirname + '/index.html'));
});

app.listen(8080);

This assumes that your tiddlywiki page is called index.html

View your Web Site

  • To view your website on the computer
http://localhost:8080
  • To view your website on any device
  • Find the ip address of your local machine
ifconfig | grep inet

This will return a number of entries. You are looking for an entry something line 192.168.0.5

  • Open your browser
  • Navigate to ipaddress:8080
  • e.g 192.168.0.5:8080

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Up ↑

%d bloggers like this: