Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

My Joyent, uses RequireJS adapter

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

My Joyent, Uses the r.js RequireJS adapter that allows RequireJS to run in Node. The latest r.js will try to load a "main.js" file if no other argument is passed to it, which is useful for the environment.

The service assumes the server script is called server.js, so to use the RequireJS adapter on

  • Get r.js. Needs to be in a RequireJS release greater than 0.22.0.
  • mv r.js server.js
  • Create a main.js as a sibling to server.js.
  • Put your app logic in main.js

Then you are all set! This project is an example of that approach.

Something went wrong with that request. Please try again.