Skip to content
podefr edited this page Apr 30, 2012 · 5 revisions

Olives requires an AMD compatible loader like requirejs to work. It's also based on Emily.js

In a browser

	<script src="./require.js"></script>
	<script src="./Emily.js"></script>
	<script src="./Olives.js"></script>
require(["Module"], function (Module) {
	// Do what you want with Module
});
 
require(["Olives/Module"], function (Module) {
	// Olives modules are prefixed with Olives
});

If your application is based on node and you want the realtime part of Olives

#Do this in the directory where your project is.
npm install olives
var olives = require("olives");
 
// Register your instance of socket.io
olives.registerSocketIO(io);
Clone this wiki locally