Hi everyone!
I am attempting to set up personal TiddlyWiki notebooks that I can access over the web. I understand that it's possible to set up a Node.js server on an AWS EC2 instance and use the server edition of TW5. However, I don't want to do this - I'd be paying Amazon to run a server 24/7 and I only want to pay for my notebooks when I am reading from or writing to them.
I have been trying to set up a lambda function which can serve my notebooks for me. What I want to do is the following:
- When I access `domain.com/notebook` and authenticate, a lambda function loads `notebook` from my S3 bucket and serves it to me.
- I read and make changes to my notebook in my browser.
- As I make changes, a lambda function saves the modified tiddlers to my S3 bucket.
Is this possible? If so,
- How do I get the output of `tiddlywiki editions/aws --build lambda` to serve a notebook?
- How do I replace the saver with something that writes to S3?
If I get this working, I promise I'll write a tutorial - I haven't been able to find one, and I think this would be a fantastic way to run TW5: lambdas and S3 are extremely cheap and this would be more convenient than synchronising over DropBox.
Thanks!