A document app is an app whose purpose is to edit a file (open, edit, save changes).
This repo contains two separate apps in both Tauri and Electron, each a stripped-down implementation of a document app containing the features:
This implementation uses a text file as the native file format, but can be easily changed to be an image editing app or any type of file.
There are many differences between the Tauri and Electron implementations, for example, Tauri exposes many of the backend system methods (fs, path) to be able to be called from the front end, where Electron requires a message-calling IPC system, and as a result is a bit more complex.
Tauri 2.0 is still under active development, contains many issues, a few of which are present in this app. As of 2025 the Electron project is the more stable of the two. Issues are enumerated below.
The designated file type is .txt.
If the file is modified but not yet saved, the app is meant to behave in the expected manner, for example, warning you before quitting. Specifically here are some things to test and ensure work. In all cases, there are two ways of quitting:
Things to test (each should be tested by triggering both types of quit)
Then there is another sequence where a file is modified and the user triggers a "new" file, or opening a new file. Opening a new file can happen two ways:
In this case, test the same series of tests as the list above.
cd electron
npm i
npm run dev
or
cd tauri
npm i
npm run tauri dev
to build Electron
npm run build
npm run build:win
npm run build:mac
npm run build:linux
GPLv3