Code Monkey home page Code Monkey logo

tw5-php-simple-sync's Introduction

tw5-php-simple-sync

a basic sync adaptor and php syncing scripts for TiddlyWiki 5

Proof of concept

Concept

On a web-server:

  • empty+plugins.html <--- the core wiki with plugins baked in
  • content1.tid <--- a .tid file to be synced
  • content2.tid <--- a .tid file to be synced
  • content3.tid <--- a .tid file to be synced
  • getSkinnyTiddlers.php <-- a php script that compiles a set of skinny tiddlers from all .tid files and echoes as json
  • saveTiddler.php <-- a php script that takes a file upload and saves as a .tid
  • loadTiddler.php <-- that takes a GET parameter as a .tid file name and echoes the full tiddler as json
  • deleteTiddler.php <-- that takes a GET parameter as a .tid file name and deletes that file

In a corresponding sync adaptor plugin:

  • the constructor method
  • methods corresponding to each of the 4 php scripts, doing an http request to that script

That's it. No database back-end, python, or nodejs.

FAQ

Is it robust?

Ummm. Improving (thanks to jtejkl's commits) but largly untested.

Is it secure?

No. There is zero authentication in this version.

Is it compatible with Tiddlywiki 5.1.13?

No, only 5.1.14

How is it installed?

Copy the folder to a php-enabled web server. The syncadaptor is baked into the html file and expects all php scripts to be in the same directory.

Wish list

  • cross-session browser caching
  • backups
  • nicer well commented code
  • config tiddler
  • lazy loading

tw5-php-simple-sync's People

Contributors

wheels00 avatar jtejkl avatar

Watchers

Tobias Beer avatar James Cloos avatar  avatar

Forkers

jtejkl

tw5-php-simple-sync's Issues

Authentication

How would a TiddlyWiki sync adapter do that? You'd need some user-management, unless you were fine using htaccess?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.