mweidner037 / fileshare-rich-text-demo

Rich text editor that syncs over a file-sharing service (demo)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fileshare rich-text-demo

Collaborative rich text editor that syncs over Dropbox.

Specifically, it autosaves its state to files in ~/Dropbox/Files/fileshare-rich-text-demo/. Each device writes to its own file; whenever you start the app or a file changes, the app "merges" every file's contents using Collabs. As a result, there are no sync conflicts, and all devices' (or collaborators') edits are preserved.

Files

  • src/main: Main process. Entry point is main.ts. Built to build/main.
  • src/renderer: Renderer process. HTML entry point is static/index.html; TypeScript entry point is script/renderer.tsx. The static folder's contents are copied to build/renderer, together with Webpack's output bundle.

Commands

Development mode:

  • Build with npm run build. Note this uses Webpack development mode.
  • Run with npm start

Production mode:

  • Configure an appropriate maker in package.json (default: .deb only).
  • Build and package with npm run make. Destination folder is out/. Note this uses Webpack production mode.
  • Run by installing the install file for your platform in out/.

About

Rich text editor that syncs over a file-sharing service (demo)

License:Apache License 2.0


Languages

Language:TypeScript 94.6%Language:JavaScript 4.7%Language:HTML 0.8%