Codiad web-based IDE framework

Codiad is an open source web-based IDE framework written in Javascript that includes a powerfull multitabs ASCII text editor with language syntax highlighting and a file tree explorer.

Installation procedure

Codiad is already installed on Arietta's microSDs. You can use this guide to it install it on a blank Linux distribution.

Make a clone of Codiad git repository in /var/www directory:

~# cd /var/www
/var/www# git clone git://github.com/Codiad/Codiad

Make the Codiad directory writable:

/var/www# chown -Rf www-data:www-data Codiad

Rename the file config.example.php in config.php:

/var/www# cd Codiad
/var/www/Codiad# mv config.example.php config.php

Change in config.php the line:

// PATH TO CODIAD
define("BASE_PATH", "/var/www/Codiad");

Set your country Timezone changing this line:

// TIMEZONE
date_default_timezone_set("America/Chicago");

Refer to this list of supported timezones in PHP to know which is the right string to use in your city.

Now create a soft link to Codiad from the web root directory:

# cd /var/www/html
/var/www/html# ln -s ../Codiad Codiad
/var/www/html# cd ..
/var/www# chown -Rf www-data:www-data Codiad
/var/www# chown -Rf www-data:www-data html

Open your browser and access to the board URL:

  • http://192.168.10.10/Codiad

follow the initial setup instructions.

  • New username: Is the Username to have access to the Editor via Web
  • Password: Is the Username password
  • New Project Name: Is the name of a new project to create using this IDE
  • Folder Name or Absolute Path: Is the directory where to save your project file. Using a simple name the directory will be created in /var/www/Codiad folder.
  • Timezone: Is the Timezone of your city

Now you are ready to edit your project files. To run it you could use a SSH or DPI session or install Shell In a Box.

Installing Shell In a Box

With Shell In a Box it is possible to have access at the system command line and launch the programs directly inside the Web browser.

Related links