A demo Vert.x web server sketching out elements of "mystack", js UI code and ruby business logic
Ruby JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.bundle
bin
db
src/main
.gitignore
.rakeTasks
.ruby-gemset
.ruby-version
.ruby-version.02.19.2015-17:45:54
Gemfile
Gemfile.lock
README.md
Rakefile
pom.xml
vertx_classpath.txt

README.md

Vert.x Example Maven Project

Demo Vert.x server using JavaScript for UI and Ruby for app and access logic. See my blog post about this demo:

Setup

First you will need Vert.x: http://vertx.io/install.html

You will also need a jruby environment set up, I use rvm:

rvm install jruby

Set up a gemset if you want to keep a clean space

rvm use ...

Install all the necessary gems into the current env

bundle install

This project uses some of the gems from rails, without pulling in the whole enchilada. I use active_record_migrations and a custom Rakefile to set up migrations, without said enchilada. I have one migration to set up the little database:

rake db:migrate db=development

Finally you should be able to run the server.js verticle, defined as main in mod.json:

mvn install vertx:runMod