Share Factories


Once the Factory URL has been created, you can use it and share in various ways:

  • Embed the Factory on your Websites, GitHub Pages,
  • Directly share the Factory URL itself,
  • Share your Factory with your friends over Facebook, G+, Twitter or by mail.
  • Embed Codenvy Factory as iFrame

Embed Factory Button on Websites

You can get a Factory button for your website, blog or a forum. By adding the Factory button to your website, you allow users to directly be redirected in a configured Codenvy workspace, that is readied for a full code, build, test and deploy workflow. The easiest method for including a Factory button on your page is to include the necessary Javascript resource.

Factory button added by the Javascript resource:

code

When you create a Factory URL, you can get the JavaScript resource as a snippet directly on the Factory URL popup:

embed

Example of a Factory button JavaScript snippet:

<script type="text/javascript" src="https://codenvy.com/factory/factory.js" language="javascript"></script>

Example: Basic HTML Page

Factory button demo: Basic page
    	<link href="http://www.example.com" rel="canonical" />
  Code, Build, Test and Deploy Instantly  

<script type="text/javascript" src="https://codenvy.com/factory/factory.js" language="javascript"></script>

Publish on GitHub Pages

githubpages
You can share a Factory button directly on GitHub Pages. Open any repository in your GitHub account, go to Settings and create a new page. Paste your Codenvy Factory URL code, save and publish the page. It usually takes about 10 minutes for a GitHub page to go live.

By adding the Factory button to your GitHub Pages, you allow users who are browsing your code through GitHub to go into a complete full code, build, test and deploy workflow by being redirected into Codenvy. Users can easily test your project and start to work on it. The easiest method for including a Factory button on your GitHub Page is to include the necessary markdown resource.

When you create a Factory URL, you can get the markdown resource as a snippet directly on the Factory URL popup:

githubpages

Example of a Markdown Page:

Code, Build, Test and Deploy Instantly
====================
[![alt](https://codenvy.com/images/factory/factory.png)](https://codenvy.com/factory?v=1.0&pname=Sample-AngularJS&wname=codenvy-factories&vcs=git&vcsurl=http%3A%2F%2Fcodenvy.com%2Fgit%2F04%2F0f%2F7f%2Fworkspacegcpv6cdxy1q34n1i%2FSample-AngularJS&idcommit=37a21ef422e7995cbab615431f0f63991a9b314a&action=openproject&ptype=JavaScript)

Direct URL Sharing

To instantly share Factory URL is a chat or email message, direct sharing works the best. It this case it is a bare Factory URL, with no graphics.
direct_sharing

Share in Social Networks and via Email

You can share a Factory URL in Facebook, Google+ and Twitter, as well as send it directly to an email address of choice. Choose a relevant button and follow the instructions.
social_buttons

Embedding Factory URL as an iFrame on a Page

Just give it a try and enclose a Factory URL into an iFrame:

<iframe name="factory-iframe" width="100%" height="600" src="YOUR FACTORY URL"></iframe>

Once you have the Factory URL, create a standard iframe tag, and then insert the Factory URL that you’ve generated as the “src” parameter. What you’ll get is a new temporary workspace embedded in your web page every time the page is visited and/or refreshed. In other words, a webpage will have an embedded online IDE, ready to build, run and deploy projects. Just like that: