@tiddlywiki/mws 0.1.11 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -22
- package/dist/metafile-esm.json +1 -1
- package/dist/mws.js +18 -9
- package/dist/mws.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,24 +5,6 @@
|
|
|
5
5
|
Donate via PayPal to support development
|
|
6
6
|
</a>
|
|
7
7
|
|
|
8
|
-
## Warning
|
|
9
|
-
|
|
10
|
-
**This is not ready for primetime. Do not use it to protect feelings or intellectual property. Seriously. The security mechanisms required are not built yet.**
|
|
11
|
-
|
|
12
|
-
_So please try it out, kick the tires, import your multi-gigabyte wikis and play around with it, but don't actually store anything you want to keep. We'll hopefully get there soon, but even the database schema itself is still in flux as we figure out what the best layout is for all the stuff we have planned._
|
|
13
|
-
|
|
14
|
-
## Security is still a dumpster fire.
|
|
15
|
-
|
|
16
|
-

|
|
17
|
-
|
|
18
|
-
## Upgrades can break your wiki, always make backups
|
|
19
|
-
|
|
20
|
-
Storing data is safe enough, sort of, but upgrading to new versions is where the problem comes in. That's why your package.json file has the exact version number saved. You can upgrade your TiddlyWiki version separate from the MWS version. Once you upgrade to a new MWS version, you might not be able to revert to the previous version. **Always make backups.** Also, you should not give untrusted users write access on any bags or recipes because they can write code that can run as any user.
|
|
21
|
-
|
|
22
|
-
## Also, this is a database, please make backups
|
|
23
|
-
|
|
24
|
-
Seriously, you never know. Databases try very hard to be perfect, and data bugs are rare. But that doesn't mean things can't go wrong. Backups are critical.
|
|
25
|
-
|
|
26
8
|
---
|
|
27
9
|
|
|
28
10
|
Multiple users, multiple wikis for TiddlyWiki.
|
|
@@ -43,6 +25,17 @@ Most of these features are still in development.
|
|
|
43
25
|
|
|
44
26
|
**Do not use it to protect feelings or intellectual property.**
|
|
45
27
|
|
|
28
|
+
## Warning: Security is still a dumpster fire.
|
|
29
|
+
|
|
30
|
+
**While the database structure is reliable, the security mechanism isn't. Do not use it to protect feelings or intellectual property. There are still ways to easily get around the security restrictions.**
|
|
31
|
+
|
|
32
|
+

|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
## Also, this is a database, please make backups
|
|
36
|
+
|
|
37
|
+
Databases try very hard to be perfect, and data bugs are rare. But that doesn't mean things can't go wrong. Backups are pretty important.
|
|
38
|
+
|
|
46
39
|
## How to run
|
|
47
40
|
|
|
48
41
|
The init command creates a new folder and installs what you need to get started. You can name "my-folder" whatever you want.
|
|
@@ -55,8 +48,8 @@ The init command creates a new folder and installs what you need to get started.
|
|
|
55
48
|
You can run `npx mws help` to get more information about the commands.
|
|
56
49
|
|
|
57
50
|
- the server runs on port `8080`. It does not use HTTPS by default, but you can enable it by specifying a key and cert.
|
|
58
|
-
- A `
|
|
59
|
-
-
|
|
51
|
+
- A `passwords.key` file is created which contains the password master salt. If this file changes, all passwords will need to be reset.
|
|
52
|
+
- Your database is in the `store` folder. All files in the `store` folder are data files, not temp or lock files! Never delete them!
|
|
60
53
|
|
|
61
54
|
The initial user created on first run has the username `admin` and password `1234`.
|
|
62
55
|
|
|
@@ -77,7 +70,14 @@ The 0.1 database is incompatible with the 0.0 database. Version 0.1 will detect
|
|
|
77
70
|
|
|
78
71
|
## Backups
|
|
79
72
|
|
|
80
|
-
It is recommended to backup your entire data folder, not just the `store` folder
|
|
73
|
+
It is recommended to backup your entire data folder, not just the `store` folder, except the `cache` folder.
|
|
74
|
+
|
|
75
|
+
- You must *always* backup the *entire* `store` folder. Never delete any files in the `store` folder. All files in the `store` folder are data files!
|
|
76
|
+
- You should definitely backup the `package.json` file, as it contains the MWS version you are currently using. The `package-lock.json` file is also useful if you don't want to back up the entire `node_modules` folder for some reason.
|
|
77
|
+
- The `cache` folder (next to the `store` folder) is generated every time MWS starts, so you can exclude that from backups if you want.
|
|
78
|
+
- The `node_modules` folder should be included in your backup, as it contains all the application code required to run your database, but it can also be reconstructed from the `package-lock.json` file or the `package.json` file.
|
|
79
|
+
|
|
80
|
+
MWS uses NPM packages, so as long as you back up the *entire* store folder, and the package-lock.json file, you should have enough information for a NodeJS developer to reconstruct the site.
|
|
81
81
|
|
|
82
82
|
## Development
|
|
83
83
|
|
|
@@ -92,6 +92,6 @@ If you want to work on the project,
|
|
|
92
92
|
- `npm start init-store` - Create the `admin` user and import default wikis.
|
|
93
93
|
- `npm start` - this will run the build every time, but it's very fast.
|
|
94
94
|
|
|
95
|
-
The development wiki will be active at http://localhost:8080/
|
|
95
|
+
The development wiki will be active at http://localhost:8080/
|
|
96
96
|
|
|
97
97
|
You can change the listeners as explained in the mws.dev.mjs file.
|