This is an experiment of a modular, progressive enhancement approach to implement a wiki app. You start with a HTML page, that can be viewed without any scripting. The page will contain information about which editor was used to create it, and that editor will be loaded. Every functionality is developed as a separate file, which could theoretically be optional, e.g. linking between pages, single-page-app, storage, tree-navigation, search, etc.
This is a simple Rails application. It uses file storage in development, Redis in production.
bundle install bundle exec rails server
By default, everyone who has the URL can view and edit documents.
To add simple password-protection, set the
This can contain multiple entries delimited by ";",
each entry must contain 3 items - permission (read|write), username, password -
delimited by ":".
The wildcard "*" may be used instead of a username to give the public
Allow everyone to view (read) but not edit (write):
Allow reading with one password, editing with another:
To force redirection to the https endpoint, set the env var:
The main front-end bits are in
public/modules/, not part of the Rails asset pipeline.
The editor module is in the memonite-slate-editor repo.
MIT - see LICENCE file.