Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.57 KB

README.md

File metadata and controls

50 lines (37 loc) · 1.57 KB

Prosemirror.net

These are the sources for https://prosemirror.net

This currently contains a front-page, the examples (including server-side code to support the collaborative demo), the guide, and the scripts to build the reference docs.

Installation

Install Node.js.

Install the module's dependencies:

npm install

Build the documentation and all the demos' JavaScript source

make

That will populate the public/ directory with an instance of the website. You could point a webserver at it to try it out.

To work on the demos, or to experiment with the collaborative demo, it is a good idea to use the dev server:

npm run devserver -- --port 8888

That will get you a server at localhost:8888 that serves the files in public/, along with the collaborative editing backend, and updates the demo pages to use moduleserve so that you can run the demos directly from the source files, rather than using the bundled code. You can now edit them and see the changes with a single refresh. (Though the server-side collaborative code still needs a server refresh to update.)

Note that this is not secure (it provides file system access of HTTP) and not fast (the browser will fetch each module individually), and should only be used for development, on your local machine, bound to localhost.