sinisterchipmunk / jax

Framework for creating rich WebGL-enabled applications using JavaScript and Ruby
http://jaxgl.com
MIT License
96 stars 16 forks source link

needed: simple example #2

Closed brownman closed 13 years ago

brownman commented 13 years ago

how to run the server ? where to find index.html ?

sinisterchipmunk commented 13 years ago

I'll be adding more detailed instructions via the readme, wiki and probably a separate dedicated website at some point in the future. For now, look at the example app in spec/example_app/.

The example app server can be run with:

bundle exec rake jasmine

and runs on port 8889 (it currently says 8888 but this is incorrect).

You can customize the HTML file in spec/example_app/spec/javascripts/support/run.html.erb but you shouldn't have to do this. Instead modify the javascript source files directly at spec/exampleapp/app/*/_.js.

More helpful instructions will be added in the near future.

brownman commented 13 years ago

i get to c no picture/drawings

courthouse_controller.js:9Uncaught TypeError: Cannot call method 'addLightSource' of undefined

sinisterchipmunk commented 13 years ago

Make sure you have the latest code (do a git pull) and do this frequently. I usually make several commits per day. It should be rendering something as of the latest commit, but also keep in mind that I reserve the right to commit broken code until the first release. After that I'll try to keep all tests running clean, but until v0.0.1 is released (hopefully within a few weeks, depending on my schedule) I make no guarantees.