1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-05 09:36:18 +00:00

Update MWS plugin readme

This commit is contained in:
Jeremy Ruston 2024-03-12 17:32:54 +00:00
parent f9064428c5
commit d6807cb471

View File

@ -1,25 +1,32 @@
title: $:/plugins/tiddlywiki/multiwikiserver/readme title: $:/plugins/tiddlywiki/multiwikiserver/readme
This plugin extends the TiddlyWiki 5 server running on Node.js to be able to host multiple wikis, which can share content or be independent. This plugin extends the TiddlyWiki 5 server running on Node.js to be able to host multiple wikis that can share content or be independent.
Before using the plugin, it is necessary to install dependencies by running the following command in the root of the ~TiddlyWiki5 repository: Installation
``` ```
git clone https://github.com/Jermolene/TiddlyWiki5.git --branch multi-wiki-support
cd TiddlyWiki5
npm install npm install
``` ```
To start the server: To start the server:
``` ```
tiddlywiki editions/multiwikiserver --listen npm start
``` ```
Then visit the sample wikis in a browser: The `npm start` command is a shortcut for the following command:
* http://127.0.0.1:8080/wiki/recipe-rho - bag-alpha, bag-beta ```
* http://127.0.0.1:8080/wiki/recipe-sigma - bag-alpha, bag-gamma node ./tiddlywiki.js ./editions/multiwikiserver --listen
* http://127.0.0.1:8080/wiki/recipe-tau - bag-alpha ```
* http://127.0.0.1:8080/wiki/recipe-upsilon - bag-alpha, bag-gamma, bag-beta
Then visit the administration interface in a browser:
* http://127.0.0.1:8080/
Note that changes are written to the topmost bag in a recipe. Note that changes are written to the topmost bag in a recipe.