Here is a breakdown of how to run Friendlycode in 3 (maybe not-so-simple) steps.
Prerequisite: A static file server such as Apache.
Steps:-
- Download Friendlycode from here.
- Extract the contents of the
friendlycode-gh-pages
package into a directory namedfriendlycode
within your file server’s document root. For example, in Apache you might want to put thefriendlycode
directory insidewww/html
orwww
orpublic_html
based upon your Operating System’s preferences. - You can then run a trivial embedding of Friendlycode from your browser by navigating to the
examples/bare.html
file within thefriendlycode
directory.
Example:
http://localhost/friendlycode/examples/bare.html
Additional features in Friendlycode:-
- Javascript: By default, Friendlycode doesn’t allow JS. An example of an embedding that allows JS and publishes using an alternate API can be run from the
examples/alternate-publisher.html
file.
Example:
http://localhost/friendlycode/examples/alternate-publisher.html
- Localization: Friendlycode currently uses Transifex for localization. To localize Friendlycode in your language, please visit the Transifex friendlycode project. Any strings you don’t translate will fall-back to English. To try out a localized version run the
examples/transifex.html
file.
Example:
http://localhost/friendlycode/examples/transifex.html
- Development: If you are a code ninja and want to play around with the dev-repository of Friendlycode, you can checkout the excellent Readme.md file at Atul’s friendlycode repository at Github.
Related articles:-
- Localizing Mozilla’s Thimble (michellethorne.cc)
- Using Mozilla Thimble Offline (ant2android.com)