TW5 + Google App Engine?

397 views
Skip to first unread message

Amit Ahire

unread,
Oct 2, 2016, 8:22:56 PM10/2/16
to TiddlyWiki

I have been trying to find a way or hack my self to host TW5 on Google App Engine, but havnt had much success yet. 

I have my site set up as an app engine application hosting static pages - I want to host my tiddlywiki online, moving everything online.

In that pursuit, I came across all the different tiddlywiki tools and frameworks. Also gaewiki - which hosts properly on Google App Engine but I guess it is based on the older tiddlewiki version. 

I want to use the TW5 and customize and add plugin based on it and host it online. Has anyone managed to that? 

Also I am using Python as GAE language  - Now that Google App Engine supports nodejs, probably it is easier to host TW5 using it? ( I am new to javascript)

Any suggestions or pointer would be appreciated. 

Thanks


Elliott Stoneham

unread,
Apr 23, 2017, 1:20:15 PM4/23/17
to TiddlyWiki
If you are still interested in using Google App Engine as a host, you should look at: https://github.com/rsc/tiddly

The application is written in the Go language, by key member of the core Go language team at Google - meaning it is likely to be very well-written.

I've only done some light testing so far, but I'm impressed!


Dino

unread,
Apr 27, 2017, 8:11:12 AM4/27/17
to TiddlyWiki

Dear Elliott,

does this really work? I tried with no success.

I would like to try the nodejs version using Google App Engine, but again, no success. Does someone have any alternative for a 100% online solution using tiddlywiki (write enabled) and nodejs?

Thank you for your suggestion.

Yours

Dino

Danielo Rodríguez

unread,
Apr 27, 2017, 8:56:33 AM4/27/17
to TiddlyWiki
Have you considered Noteself? https://noteself.github.io

Dino

unread,
Apr 27, 2017, 1:21:06 PM4/27/17
to TiddlyWiki
Dear Danielo,

It would be nice, but in this case I do have to setup one thing more: 
Nodejs or Static web site with the external database. Am I right? 

I would appreciate to have another out-of-the box solution, or... more easy setup. 

I am not an advanced user with a lot of programming skills. 

But in this case, I will try to install using the Go hosting or Static hosting and an external database. It would be interesting to have both into the same hosting.

If you have some interesting recipe (with some steps) or suggestion, I will try to make it work.

Sincerely yours. 

Dino

Dino

unread,
Apr 29, 2017, 6:16:36 PM4/29/17
to TiddlyWiki
Dear Danielo,

I saw your tutorial in youtube. It was great. And I have two questions:
1. What can I do to record my default personal database configuration into the HTML file? I explain:
Yesterday, I tried to setup my database and record it in the HTML file. But I saw that yours NoteSelf records the configuration into the machine web browser, not into the file.

When I try to use TiddlyFox to record the cconfiguration into the HTML file, I receive an Error. I think it sounds like it corrupted the Noteself file.
It interesting for me to have my personal default configuration where I can use it into my 5 different devices.

2. What can I do to upgrade your 5.14-prerelease Noteself file to the 5.14 (current) version of Tiddlywiki? I tried it and I think it corrupts the file.

What could I do?

Thank you for your effort.

Yours,

Dino

Danielo Rodríguez

unread,
May 2, 2017, 6:33:29 AM5/2/17
to TiddlyWiki
Hello Dino


El domingo, 30 de abril de 2017, 0:16:36 (UTC+2), Dino escribió:
Dear Danielo,

I saw your tutorial in youtube. It was great. And I have two questions:


Ok, seem that you have understood many of the concepts yourself. Let's review the rest
 

1. What can I do to record my default personal database configuration into the HTML file? I explain:
Yesterday, I tried to setup my database and record it in the HTML file. But I saw that yours NoteSelf records the configuration into the machine web browser, not into the file.

When I try to use TiddlyFox to record the cconfiguration into the HTML file, I receive an Error. I think it sounds like it corrupted the Noteself file.


Noteself is not a regular tiddlywiki eddition. It's purpose is not to be portable. It stores all your tiddler information on your browser, anything is saved into the html file like tiddlywiki does. For this reason, it makes no sense any attempt to hardcode the database into the html file.
 

It interesting for me to have my personal default configuration where I can use it into my 5 different devices.


For that purpose, you need to use a remote database that serves as intermediate. As you have discovered, setting up cloudant is very easy. Now, what you need to sync the data between several devices is to use the same configuration on all of them. Just open https://noteself.github.io/online on several devices and put the same remote database configuration. They will start synchronizing once you log in. 
 

2. What can I do to upgrade your 5.14-prerelease Noteself file to the 5.14 (current) version of Tiddlywiki? I tried it and I think it corrupts the file.


Hello. NoteSelf uses 5.14-prerelease because on the released 5.13 was a bug that prevented noteself to work properly. For that matter, I started to use the prerelease onf 5.14 which didn't have that bug.
Now it's my intention to move the online version to the stable version of tiddlywiki. So you don't need to do anything, the next time you visit https://noteself.github.io/online it will upgrade itself.
As I said, downloading the html file of noteself makes little sense, because it does not keep any information inside.
 
Think about noteself as any other online service, like evernote or gmail. You open them on your browser, then you log in and all your information is there. Noteself has the advantage that it saves your information FIRST on your browser, and when possible it is synced to a remote server.

If you still have any doubt, don't hesitate to ask again.

Elliott Stoneham

unread,
May 3, 2017, 4:57:41 AM5/3/17
to TiddlyWiki
does this really work? I tried with no success.

Sorry Dino, they've changed the way GAE projects have to be set-up, so the app.yaml file was no-longer correct. 

I've created a working version at: https://github.com/elliott5/tiddly 

It is usable only by the admin user of the GAE app-engine project, so personal use only... but if you stay under the GAE limits, it will be free. https://cloud.google.com/free/docs/always-free-usage-limits 

I'll probably extend it a little to make it more useful. If you (or anyone else) has any ideas on what would constitute "useful" I'd be glad to hear them.


Elliott

Dino

unread,
May 7, 2017, 6:07:34 PM5/7/17
to TiddlyWiki
Hi Elliot,

I've tested your script and it is working very well for my personal application.

I just need to ask you two things:

First, I manage a file with more than 2300 tiddlers. For using this personal archive, I would like to know:
Do I have to import and prepare the file with the 2300+ tiddlers before the upload (alternative 1)? Or do I have to prepare an empty file (with plugins) and import the 2300+ tiddlers after the upload and online (alternative 2)?














What could I do?

And second, I tried to manage this personal file online. When I try to access or reload the file I always receive the following message. And I have to wait some 20/30 seconds before use the online file.



Dont you know any (browser) local storage that could speed this access?

I would like to thank you for your valuable work.

Sincerely yours,

Dino


Auto Generated Inline Image 1

Elliott Stoneham

unread,
May 8, 2017, 1:11:18 AM5/8/17
to TiddlyWiki

In answer to your questions @Dino:

  1. The 2300+ tiddlers:
    On the app engine, these tiddlers are stored in the "datastore", so they have to be uploaded and stored there. Sadly there is no code written yet to perform a bulk tiddler upload, so this probably makes the system unsuitable for your needs at the moment. I've added an issue (#2) to note this missing feature.

  2. Managing the HTML file:
    Unfortunately, you cannot change the TiddlyWiki HTML file on-line. To do this you must replace the index.html file in your copy of this repository. This is quite an involved process, as described by the "TiddlyWiki base image" section of README.md.

I'm afraid I don't know of any (browser) local storage that could speed access, although the NoteSelf project looks very interesting from that point-of-view.


I have created an issue on the repo for this sub-discussion at https://github.com/elliott5/tiddly/issues/1  


Danielo Rodríguez

unread,
May 8, 2017, 7:47:25 AM5/8/17
to TiddlyWiki
Hello Dino,

Sorry for stepping in again, but:

Dont you know any (browser) local storage that could speed this access?

This is exactly what NoteSelf does. Plugins (and tiddlers) are stored on the browsers storage. When NoteSelf boots it first injects all the plugins into tiddlywiki, so tiddlywiki can boot properly with all the plugins.

Again, sorry for the spam, but you asked for a very concrete feature that is available.

Regards
Reply all
Reply to author
Forward
0 new messages