Problems while setting up ICE JS with 3.6

MurthybhatMurthybhat Member Shankarmurthy bhatOrganization: BOSCHProject: Publish field data to multiple browser clients
Hello,

I have been trying to setup Ice 3.6 and I am currently facing problems in running the httpserver.js for the browser based clients. I do not get any errors but the server just wont startup. Here's what I did

1. Downloaded and installed ICE 3.6
2. cd ../icedemos/js
3. npm install
4. cd ..icedemos/js/bin
5. node httpserver.js

The server used to run fine with ice 3.6.0b. However I am able to run the javascripts directly using node (Client.js). Am i missing something ? Thanks in advance for help.

Cheers,
Murthy

Comments

  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi Murthy,

    Please follow instructions included in the demos repository README
  • MurthybhatMurthybhat Member Shankarmurthy bhatOrganization: BOSCHProject: Publish field data to multiple browser clients
    Thank you for the response xdm :)

    Unfortunately it didn't help. I am behind company firewall and running 'npm' and 'gulp' is not possible (though i tried changing proxy settings). Is there any other way to get the 'HTTP server' running ?

    I must admit I had it easy with 3.6.0b (javascript distribution) than now. Its tough now with npm, gulp, bower etc especially for someone like me who is not an expert in them ! :)

    Cheers,
    Murthy
  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi,

    It is not clear what is the problem, is your firewall blocking access to npm or bower repositories?

    In your first post you say that you run npm install, that downloads the packages from npm repositories, so I guess that is a problem with bower repository.

    For bower proxy configuration you can create a .bowerrc file in the js demo directory with the following
    {
    "proxy":"http://myproxy:8080",
    "https-proxy":"http://myproxy:8080"
    }
    

    See Bower Configuration

    A few clarifications about this gulp, npm and bower

    npm is the node package manager we use it to distribute ice, slice2js and gulp-ice-builder.

    ice is the Ice for JavaScript runtime package

    slice2js is the development package it include all the Slice files and the Slice to JavaScript compiler.

    gulp-ice-builder is a plug-in for the gulp JavaScript build system, that eases the compilation of Slice files to javascript.

    bower is a package manager for the web, we use that to distribute the Ice for JavaScript runtime for web browsers (note this runtime is also available in npm ice package).
  • MurthybhatMurthybhat Member Shankarmurthy bhatOrganization: BOSCHProject: Publish field data to multiple browser clients
    Hello XDM,

    Thanks a lot for the suggestions. I managed to get it working :)

    Cheers,
    Murthy
Sign In or Register to comment.