{
    "componentChunkName": "component---src-templates-note-note-js",
    "path": "/notes/collaborative-editing",
    "result": {"data":{"mdx":{"body":"var _excluded = [\"components\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n/* @jsxRuntime classic */\n/* @jsx mdx */\n\nvar _frontmatter = {};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n    props = _objectWithoutProperties(_ref, _excluded);\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"\", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/notes/Google-docs\",\n    \"title\": \"Google docs\"\n  }, \"Google docs\"), \" is the best example for this that we know of. \"), mdx(\"p\", null, \"If I had to build something on these lines which is quick and dirty and makes use of the things that i already know of I would follow this approach. \"), mdx(\"ol\", null, mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Create a github repo.\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"All people who want to edit something collaboratively add them to this repo. \"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Create a folder called docs in the repo.\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Add one md file every file that all people in repo can collaboratively edit. \"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"People clone this repo on their machine. \"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Open the md file that they want to edit collaboratively. \"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Push local change to central repo\", mdx(\"ol\", {\n    parentName: \"li\"\n  }, mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Write a watch script that auto saves the file every second(reduce this over the time) only if there is a local change. commits the diff and pushes it. \"))), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Pull changes from central repo\", mdx(\"ol\", {\n    parentName: \"li\"\n  }, mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Even if there is no change still pull the code every second. No conflict then update.\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"If there is a conflict just create a conflict copy that is mapped to the source md file. Look at how dropbox does is beautifully.\"))), mdx(\"li\", {\n    parentName: \"ol\"\n  })));\n}\n;\nMDXContent.isMDXComponent = true;","inboundReferences":[]}},"pageContext":{"slug":"collaborative-editing","node":{"childMdx":{"slug":"collaborative-editing"}}}},
    "staticQueryHashes": []}