Codenvy Factories: one-click development environment cloning

    As you know, at the moment in San Francisco is a very interesting event - Java One . Several days of presentation of industry achievements, communication and exchange of experience. Cloud technologies, and cloud IDEs in particular, naturally, did not miss the moment to brag about their latest developments and beta chips. Codenvy , among the reasons, attracted attention to their demo booth with a feature that allowed them to clone the development environment, of course, together with the project. In its documentation, the company provides fairly detailed information about Codenvy Factory. I will just make a brief summary of the functionality and give an example of the Factory button:

    image

    So, clicking on the Factory button, we get into the temporary workspace from Codenvy. Once the virtual workstation has been created, the system starts cloning the original project (the project from which the Factory was created). It takes a little time, but, of course, it all depends on the size of the cloned project. The link above is the project from the Codenvy template (by the way, this Android project can be launched on the Manymo external emulator via the Run> Run Application menu ).

    Workspace is temporary and will self-destruct in two hours. You can also use it for collaborative editing by sharing the URL with colleagues. If you wish, creating a pedestrian account in Codenvy will not take much time. There is a button - create account. For registered users, copying the Factory project to their workspace is available.

    The Factory URL consists of several components, some of which are optional: We will analyze the Factory URL in detail: - this is how any Factory URL begins - we indicate the version of the Factory API. At the moment, 1.0 is the current version - the name of the project, which is set by default, however it can be edited manually - the version control system used. Codenvy only supports git

    codenvy.com/factory?v=1.0&pname=android&wname=docs.codenvy&vcs=git
    &vcsurl=http%3A%2F%2Fcodenvy.com%2Fgit%2Fca%2F01%2F5c%2Fworkspacehs0z291wscvggfuh%2Fandroid
    &idcommit=374fb47f35231328eafa5159bea7fe86902f8361&action=openproject&ptype=Android&openfile=pom.xml




    codenvy.com/factory?

    v=1.0

    pname=android

    vcs=git

    vcsurl=http%3A%2F%2Fcodenvy.com%2Fgit%2Fca%2F01%2F5c%2Fworkspacehs0z291wscvggfuh%2Fandroid- URL of the source project, which will be cloned to a temporary workshop. Use of external links is allowed. For example, here you can substitute the URL of the public repository with GitHub

    idcommit=374fb47f35231328eafa5159bea7fe86902f8361- commit ID. You can create Factory projects in its various states

    &action=openproject- tell Codenvy what to do after creating the temporary workspace

    openfile=pom.xml- tell Codenvy which file to open after creating the temporary workspace. We simply indicate the name of the file, if it is in the root, and the path to it, if it is in the folder, for example: scr/main/java/helloworld.java

    Thus, you can build a Factory URL without having an account in Codenvy, the so-called Use the links of your remote repositories.

    By creating a temporary workshop, the user can invite collaborators to it. To do this, just share the workspace URL by copying it from the address bar of the browser. First you need to activate collaboration mode in the Project menu, which provides chat and joint editing of files / projects.

    Creating Factory buttons is possible both inside Codenvy and independently. Codenvy offers 2 options for designing buttons:

    image
    and
    image

    also a ready-to-use script:



    However, users can use their images, making them clickable. For example, this way: Full documentation on Factory, as well as possible use cases are available at the following link - http://docs.codenvy.com/user/ in the Factory section. More



    Details of Codenvy .

    Also popular now: