filearts / plunker_www

The public-facing website for http://plnkr.co
MIT License
289 stars 99 forks source link

Question: Intranet hosted Plunker, where the files are stored in Plunker #76

Closed gopalakrishnan-subramani closed 8 years ago

gopalakrishnan-subramani commented 8 years ago

Looking for setting up plunker within office environment, useful for workshops and training.

Where does the files added/edited by the users stored? In MongoDB? or in File system, also how the versions are maintained.

Thanks in advance.

ggoodman commented 8 years ago

Plunks are stored in MongoDB. Revisions are stored as the text diff (using Google's diff patch match) against the succeeding (next most recent) version.

The logic for this is at: https://github.com/filearts/plunker_api/blob/master/resources/plunks.coffee#L401-L428