I have a Javascript project that I work on in cloud9 IDE online, and I wanted to test my code using testem npm module: npmjs.org/package/testem together with libraries like Mocha or Jasmine.
I was following this tutorial on net tuts +
I have installed the testem npm module, but when I run it using command "testem" in cloud9's terminal window testem asks me to open a new tab in "localhost:7357"
Generally to preview workspace files in cloud9 I would go to https://c9.io/username/folders.../workspace/folders.../index.html
Since I am on the cloud9 server, I wanted to know if it is possible to open this 'localhost' link from the browser, and if yes, how would I do it?
(I tried 'localhost', '127.0.0.1', '0.0.0.0' inside cloud9's IDE, but it did not work).
Maybe I can access it differently?
Like "username.cl9.io/workspace:PORT" ?
If not, maybe it is possible to provide a link and port to testem (and by any chance how would one do it ?). I know in cloud9 you can use process.env.IP and process.env.PORT to provide to different modules, but no idea on how to open such files later from the browser.
Any help will be appreciated.
If you are running a node process: http://workspacename.username.c9users.io will be the link to get to it.
If you want to preview a particular file in the workspace: https://c9users.io/username/workspacename/workspace/filename.html
My name is bob, and my project name is mycoolproject.
Running node service link - http://mycoolproject.bob.c9users.io
Direct file preview link - https://c9users.io/bob/mycoolproject/workspace/index.html