Coder Social home page Coder Social logo

node.vert.x's Introduction

node.vert.x

This is a simple node.js compatibility layer for vert.x

Building

Clone the repo into your vertx/mods directory

Initialize the submodules: git submodule update --init

Copy build.properties.sample to build.properties

ant

Running

Add node.vert.x/bin to your PATH

Go to your project directory (ex: ShareJS)

Run the node.vert.x mod:

node.vert.x <arguments>

Ex:

Running ShareJS

node.vert.x bin/exampleserver.js -p 8080

Notes

All the node.js modules are copied from node.js which means copyright Joyent, Inc. and other Node contributors.

node.vert.x's People

Contributors

fyalavuz avatar

Stargazers

 avatar Aurodev avatar 曹文忠 avatar  avatar Angus H. avatar Jiny Thattil avatar Kai Davenport avatar  avatar Tim Spann avatar  avatar Gordon avatar Sean Kelly avatar Ahmad Luqman avatar Michaël MEMETEAU avatar  avatar Eric West avatar Pranil Dasika avatar Chris Chapman avatar Surat Teerapittayanon avatar Sławomir Janecki avatar  avatar  avatar Jeff Stout avatar Glenn 'devalias' Grant avatar Spencer Tom Tafadzwa Chirume avatar Aaron Foltz avatar Pier Paolo Ramon avatar Jock Murphy avatar Sylvain Faucherand avatar Steffen Opel avatar H S avatar  avatar Jason Brumwell avatar makotan avatar jesse avatar Dallan Quass avatar Masakazu Ishibashi avatar yuuki arisawa avatar Jim Fleming avatar Sam IT avatar J. J. Knudsen avatar Aaron Kaluszka avatar Thom Heymann avatar Andrew Johnston avatar Tony Jin avatar Rowland Watkins avatar Gilberto Olimpio avatar Julian Bilcke avatar Vincent Voyer avatar 3000 avatar Brian Lalor avatar Luci Brăn avatar Sam Beran avatar Scott Bennett-McLeish avatar Matt Butcher avatar Stephen Sugden avatar Brad Jones avatar Fredrik Wärnsberg avatar Pham Cong Dinh avatar Stig Kleppe-Jørgensen avatar Rahim Packir Saibo avatar Nelson Yee avatar Riko Tertsch avatar  avatar Nelson Silva avatar John D'Agostino avatar Rich Manalang avatar

Watchers

yury avatar Osvaldo avatar James Cloos avatar  avatar

node.vert.x's Issues

Build problems

Hi there

First up, this project is a really great idea!

I've been following Vert.x for a while now and it looks very promising.

I've followed the instructions to the letter but getting this error when I run ant on Mac OSX:


OB:node.vert.x owen$ ant
Buildfile: /Users/owen/Downloads/vert.x-1.0.1.final/mods/node.vert.x/build.xml

compile:
    [javac] Compiling 3 source files to /Users/owen/Downloads/vert.x-1.0.1.final/mods/node.vert.x
    [javac] /Users/owen/Downloads/vert.x-1.0.1.final/mods/node.vert.x/src/org/vertx/node/NodeModuleSourceProvider.java:3: error: package org.mozilla.javascript.commonjs.module does not exist
    [javac] import org.mozilla.javascript.commonjs.module.ModuleScope;
    [javac]                                              ^
    [javac] /Users/owen/Downloads/vert.x-1.0.1.final/mods/node.vert.x/src/org/vertx/node/NodeModuleSourceProvider.java:4: error: package org.mozilla.javascript.commonjs.module.provider does not exist
    [javac] import org.mozilla.javascript.commonjs.module.provider.ModuleSource;
    [javac]                                                       ^
    [javac] /Users/owen/Downloads/vert.x-1.0.1.final/mods/node.vert.x/src/org/vertx/node/NodeModuleSourceProvider.java:5: error: package org.mozilla.javascript.commonjs.module.provider does not exist
    [javac] import org.mozilla.javascript.commonjs.module.provider.UrlModuleSourceProvider;
    [javac]                                                       ^
    [javac] /Users/owen/Downloads/vert.x-1.0.1.final/mods/node.vert.x/src/org/vertx/node/NodeModuleSourceProvider.java:20: error: cannot find symbol
    [javac] public class NodeModuleSourceProvider extends UrlModuleSourceProvider {
    [javac]                                               ^
    [javac]   symbol: class UrlModuleSourceProvider
    [javac] /Users/owen/Downloads/vert.x-1.0.1.final/mods/node.vert.x/src/org/vertx/node/NodeModuleSourceProvider.java:40: error: cannot find symbol
    [javac]   protected ModuleSource loadFromPrivilegedLocations(String moduleId, Object validator) throws IOException, URISyntaxException {
    [javac]             ^
    [javac]   symbol:   class ModuleSource
    [javac]   location: class NodeModuleSourceProvider
    [javac] /Users/owen/Downloads/vert.x-1.0.1.final/mods/node.vert.x/src/org/vertx/node/NodeModuleSourceProvider.java:73: error: cannot find symbol
    [javac]   private ModuleSource loadAsFileOrDirectory(String moduleId, URI base) throws IOException {
    [javac]           ^
    [javac]   symbol:   class ModuleSource
    [javac]   location: class NodeModuleSourceProvider
    [javac] /Users/owen/Downloads/vert.x-1.0.1.final/mods/node.vert.x/src/org/vertx/node/NodeModuleSourceProvider.java:109: error: cannot find symbol

... 

    [javac]       scope.defineFunctionProperties(new String[] { "load" }, NodeVerticle.class, ScriptableObject.DONTENUM);
    [javac]                                                                                   ^
    [javac]   symbol:   variable ScriptableObject
    [javac]   location: class NodeVerticle
    [javac] /Users/owen/Downloads/vert.x-1.0.1.final/mods/node.vert.x/src/org/vertx/node/NodeVerticle.java:137: error: cannot find symbol
    [javac]       Require require = installRequire(cl, cx, scope);
    [javac]       ^
    [javac]   symbol:   class Require
    [javac]   location: class NodeVerticle
    [javac] /Users/owen/Downloads/vert.x-1.0.1.final/mods/node.vert.x/src/org/vertx/node/NodeVerticle.java:139: error: cannot find symbol
    [javac]       Scriptable script = require.requireMain(cx, scriptName);
    [javac]       ^
    [javac]   symbol:   class Scriptable
    [javac]   location: class NodeVerticle
    [javac] /Users/owen/Downloads/vert.x-1.0.1.final/mods/node.vert.x/src/org/vertx/node/NodeVerticle.java:141: error: cannot find symbol
    [javac]         stopFunction = (Function) script.get("vertxStop", scope);
    [javac]                         ^
    [javac]   symbol:   class Function
    [javac]   location: class NodeVerticle
    [javac] /Users/owen/Downloads/vert.x-1.0.1.final/mods/node.vert.x/src/org/vertx/node/NodeVerticle.java:148: error: cannot find symbol
    [javac]       Context.exit();
    [javac]       ^
    [javac]   symbol:   variable Context
    [javac]   location: class NodeVerticle
    [javac] /Users/owen/Downloads/vert.x-1.0.1.final/mods/node.vert.x/src/org/vertx/node/NodeVerticle.java:154: error: cannot find symbol
    [javac]       Context cx = Context.enter();
    [javac]       ^
    [javac]   symbol:   class Context
    [javac]   location: class NodeVerticle
    [javac] /Users/owen/Downloads/vert.x-1.0.1.final/mods/node.vert.x/src/org/vertx/node/NodeVerticle.java:154: error: cannot find symbol
    [javac]       Context cx = Context.enter();
    [javac]                    ^
    [javac]   symbol:   variable Context
    [javac]   location: class NodeVerticle
    [javac] /Users/owen/Downloads/vert.x-1.0.1.final/mods/node.vert.x/src/org/vertx/node/NodeVerticle.java:158: error: cannot find symbol
    [javac]         Context.exit();
    [javac]         ^
    [javac]   symbol:   variable Context
    [javac]   location: class NodeVerticle
    [javac] 78 errors

BUILD FAILED
/Users/owen/Downloads/vert.x-

I'm sure there's a simple explanation which I could fix myself if I had more experience with Java/Ant, but right now I'm stuck. Vert.x itself is running fine.

Cheers,

Owen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.