LoopBack makes it easy to build modern applications that require complex integrations.
Go to file
Ritchie Martori ca3a3c468c Handle id and data in sharedCtor 2013-06-07 18:31:29 -07:00
example port number in console log was incorrect in example app 2013-06-04 13:35:41 -07:00
lib Handle id and data in sharedCtor 2013-06-07 18:31:29 -07:00
node_modules Bring up the oracle integration 2013-05-24 08:57:52 -07:00
test Remove aux test 2013-05-17 17:56:11 -07:00
.gitignore Bring up the oracle integration 2013-05-24 08:57:52 -07:00
README.md Update README.md 2013-06-07 14:09:07 -06:00
index.js init 2013-04-09 09:02:36 -07:00
package.json Update package.json 2013-06-07 14:09:31 -06:00

README.md

asteroid

v0.6.0

Install

slnode install asteroid -g

API

app

Create an asteroid app.

var asteroid = require('asteroid')
  , app = asteroid();

app.dataSource()

Attach a remote data source to your app.

app.dataSource('color-db', {
  adapter: 'oracle',
  host: 'localhost',
  port: 2345,
  user: 'test',
  password: 'test'
});

app.define(name)

Define a Model.

var Color = app.define('color');

app.use(asteroid.rest);

Expose your models over a REST api.

// node
app.use(asteroid.rest);

// http
GET /colors

200 OK
[
  {name: 'red'},
  {name: 'blue'},
  {name: 'green'}
]

Asteroid Modules