Author Topic: Cloud9 IDE - (localhost)  (Read 7388 times)

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Cloud9 IDE - (localhost)
« on: October 12, 2013, 01:49:17 PM »
I was able to get the Cloud9 IDE environment working on my Ubuntu 12.04 LTS 64 bit development laptop. The following screen shot is the first time I brought it up in the browser after building it. I haven't done any of the configuration stuff yet or assigned users. (hence no console prompt)



Code: [Select]
# ace modes ---------
mode abap
mode actionscript
mode ada
mode asciidoc
mode assembly_x86
mode autohotkey
mode batchfile
mode c9search
mode c_cpp
mode clojure
mode cobol
mode coffee
mode coldfusion
mode csharp
mode css
mode curly
mode d
mode dart
mode diff
mode django
mode dot
mode ejs
mode erlang
mode forth
mode ftl
mode glsl
mode golang
mode groovy
mode haml
mode haskell
mode haxe
mode html
mode html_ruby
mode ini
mode jade
mode java
mode javascript
mode json
mode jsoniq
mode jsp
mode jsx
mode julia
mode latex
mode less
mode liquid
mode lisp
mode livescript
mode logiql
mode lsl
mode lua
mode luapage
mode lucene
mode makefile
mode markdown
mode matlab
mode mushcode
mode mushcode_high_rules
mode mysql
mode objectivec
mode ocaml
mode pascal
mode perl
mode pgsql
mode php
mode plain_text
mode powershell
mode prolog
mode properties
mode python
mode r
mode rdoc
mode rhtml
mode ruby
mode rust
mode sass
mode scad
mode scala
mode scheme
mode scss
mode sh
mode snippets
mode sql
mode stylus
mode svg
mode tcl
mode tex
mode text
mode textile
mode toml
mode twig
mode typescript
mode vbscript
mode velocity
mode verilog
mode xml
mode xquery
mode yaml
# ace themes ---------
theme ambiance
theme chaos
theme chrome
theme clouds
theme clouds_midnight
theme cobalt
theme crimson_editor
theme dawn
theme dreamweaver
theme eclipse
theme github
theme idle_fingers
theme kr_theme
theme merbivore
theme merbivore_soft
theme mono_industrial
theme monokai
theme pastel_on_dark
theme solarized_dark
theme solarized_light
theme terminal
theme textmate
theme tomorrow
theme tomorrow_night
theme tomorrow_night_blue
theme tomorrow_night_bright
theme tomorrow_night_eighties
theme twilight
theme vibrant_ink
theme xcode
# ace extensions ---------
extensions elastic_tabstops_lite
extensions emmet
extensions keybinding_menu
extensions language_tools
extensions modelist
extensions searchbox
extensions settings_menu
extensions spellcheck
extensions split
extensions static_highlight
extensions statusbar
extensions textarea
extensions themelist
extensions whitespace
# ace key bindings ---------
# ace worker ---------
worker for coffee mode
worker for css mode
worker for javascript mode
worker for json mode
worker for lua mode
worker for php mode
worker for xquery mode
--- Ace Dryice Build Tool ---

Options:
  minimal     Places necessary Ace files out in build dir; uses configuration flags below [default]
  normal      Runs four Ace builds--minimal, minimal-noconflict, minimal-min, and minimal-noconflict-min
  demo        Runs demo build of Ace
  bm          Runs bookmarklet build of Ace
  full        all of above
args:
  --target ./path   path to build folder
flags:
  --h                print this help
  --m                minify
  --nc               namespace require
  --s                shrinkwrap (combines all output files into one)

 output generated in minimal/home/jrs/c9basic/cloud9/node_modules/ace//home/jrs/c9basic/cloud9/node_modules/ace/build
simple-template@0.0.1 node_modules/simple-template

http-error@0.0.1 node_modules/http-error

vfs-nodefs-adapter@0.3.0 node_modules/vfs-nodefs-adapter

netutil@0.0.1 node_modules/netutil

msgpack-js-browser@0.1.4 node_modules/msgpack-js-browser

mappings@0.1.5 node_modules/mappings

amd-loader@0.0.4 node_modules/amd-loader

architect-agent@0.2.2 node_modules/architect-agent

architect@0.1.10 node_modules/architect

colors@0.6.2 node_modules/colors

async@0.1.21 node_modules/async

v8debug@0.1.1 node_modules/v8debug

asyncjs@0.0.9 node_modules/asyncjs

treehugger@0.0.1 node_modules/treehugger

rimraf@2.0.1 node_modules/rimraf
└── graceful-fs@1.1.14

connect-architect@0.0.6 node_modules/connect-architect
└── mime@1.2.11

vfs-local@0.3.11 node_modules/vfs-local
└── simple-mime@0.0.8

architect-socket-transport@0.3.0 node_modules/architect-socket-transport
└── msgpack-js@0.1.5

optimist@0.3.4 node_modules/optimist
└── wordwrap@0.0.2

smith@0.1.21 node_modules/smith
└── msgpack-js@0.1.5

connect@1.8.7 node_modules/connect
├── qs@0.6.5
├── mime@1.2.11
└── formidable@1.0.14

dryice@0.4.10 node_modules/dryice
└── uglify-js@1.3.5

engine.io@0.5.0 node_modules/engine.io
├── base64id@0.1.0
├── engine.io-parser@0.3.0
├── debug@0.6.0
└── ws@0.4.25 (tinycolor@0.0.1, options@0.0.5, commander@0.6.1)

engine.io-client@0.5.0 node_modules/engine.io-client
├── emitter@1.0.0
├── debug@0.7.2
├── xmlhttprequest@1.5.0
├── engine.io-parser@0.3.0
└── ws@0.4.25 (tinycolor@0.0.1, options@0.0.5, commander@0.6.1)

vfs-architect@0.0.2 node_modules/vfs-architect
├── vfs-http-adapter@0.2.3
└── vfs@0.0.2 (simple-mime@0.0.8, ws@0.4.31)

nodeunit@0.7.4 node_modules/nodeunit
└── tap@0.4.4 (deep-equal@0.0.0, buffer-equal@0.0.0, slide@1.1.5, mkdirp@0.3.5, nopt@2.1.2, glob@3.2.6, difflet@0.2.6, runforcover@0.0.2)

ace@1.0.0 node_modules/ace
└── mime@1.2.11

jsDAV@0.2.6 node_modules/jsDAV
├── xmldom@0.1.2
├── node-sftp@0.1.1
├── formidable@1.0.9
├── asyncjs@0.0.8
├── jsftp@0.5.5 (streamer@0.2.1)
└── gnu-tools@0.0.8
jrs@laptop:~/c9basic/cloud9$
jrs@laptop:~/c9basic/cloud9$ bin/cloud9.sh
mkdir -p plugins-client/lib.ace/www/worker
rm -rf /tmp/c9_worker_build
mkdir -p /tmp/c9_worker_build/ext
ln -s `pwd`/plugins-client/ext.language /tmp/c9_worker_build/ext/language
ln -s `pwd`/plugins-client/ext.codecomplete /tmp/c9_worker_build/ext/codecomplete
ln -s `pwd`/plugins-client/ext.jslanguage /tmp/c9_worker_build/ext/jslanguage
ln -s `pwd`/plugins-client/ext.csslanguage /tmp/c9_worker_build/ext/csslanguage
ln -s `pwd`/plugins-client/ext.htmllanguage /tmp/c9_worker_build/ext/htmllanguage
ln -s `pwd`/plugins-client/ext.linereport /tmp/c9_worker_build/ext/linereport
ln -s `pwd`/plugins-client/ext.linereport_php /tmp/c9_worker_build/ext/linereport_php
ln -s `pwd`/plugins-client/ext.linereport_python /tmp/c9_worker_build/ext/linereport_python
node Makefile.dryice.js worker
# cloud9 worker ---------
copy.source.commonjs is deprecated, pass { project:... includes:...} directly as a source
- ace/lib/fixoldbrowsers.js has define(...) with non-array parameter. Ignoring requirement.
- ace/lib/regexp.js has define(...) with non-array parameter. Ignoring requirement.
- ace/lib/es5-shim.js has define(...) with non-array parameter. Ignoring requirement.
- ace/lib/event_emitter.js has define(...) with non-array parameter. Ignoring requirement.
- ace/lib/oop.js has define(...) with non-array parameter. Ignoring requirement.
- ext/language/worker.js has define(...) with non-array parameter. Ignoring requirement.
- ext/language/worker.js has require(...) with non-string parameter. Ignoring requirement.
- ext/language/worker.js has require(...) with non-string parameter. Ignoring requirement.
- ace/worker/mirror.js has define(...) with non-array parameter. Ignoring requirement.
- ace/document.js has define(...) with non-array parameter. Ignoring requirement.
- ace/range.js has define(...) with non-array parameter. Ignoring requirement.
- ace/anchor.js has define(...) with non-array parameter. Ignoring requirement.
- ace/lib/lang.js has define(...) with non-array parameter. Ignoring requirement.
- treehugger/tree.js has define(...) with non-array parameter. Ignoring requirement.
- ext/linereport/linereport_base.js has define(...) with non-array parameter. Ignoring requirement.
- ext/language/base_handler.js has define(...) with non-array parameter. Ignoring requirement.
- ext/language/syntax_detector.js has define(...) with non-array parameter. Ignoring requirement.
- ext/codecomplete/complete_util.js has define(...) with non-array parameter. Ignoring requirement.
- ext/codecomplete/local_completer.js has define(...) with non-array parameter. Ignoring requirement.
- ext/codecomplete/snippet_completer.js has define(...) with non-array parameter. Ignoring requirement.
- ext/codecomplete/open_files_local_completer.js has define(...) with non-array parameter. Ignoring requirement.
- ext/jslanguage/parse.js has define(...) with non-array parameter. Ignoring requirement.
- treehugger/js/parse.js has define(...) with non-array parameter. Ignoring requirement.
- treehugger/js/uglifyparser.js has define(...) with non-array parameter. Ignoring requirement.
- treehugger/traverse.js has define(...) with non-array parameter. Ignoring requirement.
- ext/jslanguage/scope_analyzer.js has define(...) with non-array parameter. Ignoring requirement.
- ext/jslanguage/outline.js has define(...) with non-array parameter. Ignoring requirement.
- ext/jslanguage/jshint.js has define(...) with non-array parameter. Ignoring requirement.
- ace/mode/javascript/jshint.js has define(...) with non-array parameter. Ignoring requirement.
- ext/jslanguage/JSResolver.js has define(...) with non-array parameter. Ignoring requirement.
- ext/language/MarkerResolution.js has define(...) with non-array parameter. Ignoring requirement.
- ext/jslanguage/jumptodef.js has define(...) with non-array parameter. Ignoring requirement.
- ext/jslanguage/debugger.js has define(...) with non-array parameter. Ignoring requirement.
- ext/csslanguage/css_handler.js has define(...) with non-array parameter. Ignoring requirement.
- ext/csslanguage/csslint.js has define(...) with non-array parameter. Ignoring requirement.
- ext/htmllanguage/html_completer.js has define(...) with non-array parameter. Ignoring requirement.
- ext/htmllanguage/snippets.js has define(...) with non-array parameter. Ignoring requirement.
- ext/codecomplete/mode_completer.js has define(...) with non-array parameter. Ignoring requirement.
- ext/linereport_php/linereport_php_worker.js has define(...) with non-array parameter. Ignoring requirement.
- ext/linereport_python/linereport_python_worker.js has define(...) with non-array parameter. Ignoring requirement.
cp node_modules/ace/build/src/worker* plugins-client/lib.ace/www/worker

Linux 64 bit
connect plugin start
Connect server listening at http://localhost:3131
IDE SERVER PLUGIN:  auth
IDE SERVER PLUGIN:  git
IDE SERVER PLUGIN:  gittools
IDE SERVER PLUGIN:  hg
IDE SERVER PLUGIN:  npm
IDE SERVER PLUGIN:  filelist
IDE SERVER PLUGIN:  search
IDE SERVER PLUGIN:  revisions
IDE SERVER PLUGIN:  settings
IDE SERVER PLUGIN:  shell
IDE SERVER PLUGIN:  state
IDE SERVER PLUGIN:  watcher
IDE SERVER PLUGIN:  node-runtime
IDE SERVER PLUGIN:  npm-runtime
IDE SERVER PLUGIN:  python-runtime
IDE SERVER PLUGIN:  apache-runtime
IDE SERVER PLUGIN:  ruby-runtime
IDE SERVER PLUGIN:  php-runtime
Started '/home/jrs/c9basic/cloud9/configs/default'!
IDE server initialized. Listening on localhost:3131

This changes how I look at Cloud9 IDE (the service) going forward.
« Last Edit: October 12, 2013, 05:59:37 PM by John »

kryton9

  • Guest
Re: Cloud9 IDE - (localhost)
« Reply #1 on: October 12, 2013, 04:11:45 PM »
You are always a few steps ahead of me John, I love it.

I posted about the ability somewhere else about downloading cloud9 to your local server.
And here you did it!!!

I am glad it works.


kryton9

  • Guest
BeagleBone Black - linux, cloud9 and bone script for node.js
« Reply #2 on: October 12, 2013, 05:57:41 PM »
BeagleBone Black: $45, BeagleBoard.org, 1GHz Cortex-A8 TI Sitara AM3359

BeagleBone Black is a $45 MSRP community-supported development platform for developers and hobbyists. Boot Linux in under 10 seconds and get started on development in less than 5 minutes with just a single USB cable.

Key Features:
- 512MB DDR3 RAM
- 2GB 8-bit eMMC on-board flash storage
- 3D graphics accelerator
- NEON floating-point accelerator
- 2x PRU 32-bit microcontrollers
- USB client for power & communications
- USB host
- Ethernet
- HDMI
- 2x 46 pin headers
- Compatible with Ångström Linux, Android, Ubuntu, Cloud9 IDE on Node.js w/ BoneScript library, plus much more

If you watch Ask an Engineer on Saturday nights, they give you a discount code for 10% off your shopping till midnight. I will order one tonight.
http://www.adafruit.com/chat/
« Last Edit: October 12, 2013, 06:03:10 PM by kryton9 »

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
BeagleBone Black - linux, cloud9 and bone script for node.js
« Reply #3 on: October 12, 2013, 06:03:31 PM »
Sweet ! ($45)



Can you visualize a data center with shelves of B-Bones?

« Last Edit: October 12, 2013, 06:56:14 PM by John »

kryton9

  • Guest
Re: Cloud9 IDE - (localhost)
« Reply #4 on: October 12, 2013, 06:27:39 PM »
Shows how easy it is to use out of the box. It has cloud9 built in and ssh server and can also run as a stand alone linux computer.  This is a good video.
http://www.youtube.com/watch?v=cFL_cQu1phc