ON THIS PAGE
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
Example: Basic HTML Page
Publish on GitHub Pages
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:
Example of a Markdown Page:
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.
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.
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: