Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Orion/How Tos/How To Enable Collaboration"

< Orion‎ | How Tos
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
== Setup hub server  ==
 
== Setup hub server  ==
* Checkout git repository:
+
* Code live in modules/orionode.collab.hub
  https://github.com/itsAmr/orion.hub_server.git
+
* Go to ''config.js''  
* Go to ''config.js'' and change ''jwt_secret'' to any secret string.
+
  change ''jwt_secret'' to any secret string, by default it's "orion collab".
* Run it.
+
  change ''orion'' to whatever the Orion Node Server's url is.
 +
* Run "npm install"
 +
* Run "node server.js", record what the url is, which will be needed in the following configurations, it might be for example"http://localhost:8082/".
  
 
== Setup Orion (node) ==
 
== Setup Orion (node) ==
* Go to ''orion.conf''. Disable single user mode. Then change ''orion.jwt.secret'' to the same secret string as you set for the hub server.
+
* Code live in modules/orionode
 +
* Go to ''orion.conf''.  
 +
    Disable single user mode
 +
    Set ''orion.collab.enabled'' to true
 +
    Then change ''orion.jwt.secret'' to the same secret string as you set for the hub server, following the above example, it will be "orion collab".
 
* Make sure mongodb server is running.
 
* Make sure mongodb server is running.
* Go to ''orionode.client/defaults.pref''. Add the following line in the ''./plugin'' section:
+
* Go to ''orionode.client/defaults.pref''.  
  "collab/plugins/collabPlugin.html": true
+
  Add the following line in the ''./plugin'' section: "collab/plugins/collabPlugin.html": true
* Then go to ''bundles/org.eclipse.orion.client.ui/web/edit/collaboration''. Run
+
  Add the following lines next to ''./plugin'' obejct, the hubUrl is the url recorded when starting the Hub Server.
  npm install
+
    "/collab": {
  grunt build
+
      "hubUrl": "http://localhost:8082/"
 +
    }
 
* Run Orion server.
 
* Run Orion server.
  
 
== Try collaboration ==
 
== Try collaboration ==
 
There are two users A and B.
 
There are two users A and B.
* A: Right click on a project and select ''Share Project''. Type the user name of B in the pop-up window.
+
* A: Right click on a project and select ''Share''. Type the user name of B in the pop-up window.
 
* B: Go to ''Shared Workspace''. If A did his work correctly, B should see A's shared project.
 
* B: Go to ''Shared Workspace''. If A did his work correctly, B should see A's shared project.
 
* Edit files in this project together.
 
* Edit files in this project together.

Latest revision as of 13:52, 16 August 2017

Setup hub server

  • Code live in modules/orionode.collab.hub
  • Go to config.js
  change jwt_secret to any secret string, by default it's "orion collab".
  change orion to whatever the Orion Node Server's url is.
  • Run "npm install"
  • Run "node server.js", record what the url is, which will be needed in the following configurations, it might be for example"http://localhost:8082/".

Setup Orion (node)

  • Code live in modules/orionode
  • Go to orion.conf.
    Disable single user mode
    Set orion.collab.enabled to true
    Then change orion.jwt.secret to the same secret string as you set for the hub server, following the above example, it will be "orion collab".
  • Make sure mongodb server is running.
  • Go to orionode.client/defaults.pref.
  Add the following line in the ./plugin section: "collab/plugins/collabPlugin.html": true
  Add the following lines next to ./plugin obejct, the hubUrl is the url recorded when starting the Hub Server.
   "/collab": {
     "hubUrl": "http://localhost:8082/"
   }
  • Run Orion server.

Try collaboration

There are two users A and B.

  • A: Right click on a project and select Share. Type the user name of B in the pop-up window.
  • B: Go to Shared Workspace. If A did his work correctly, B should see A's shared project.
  • Edit files in this project together.

Back to the top