Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Latest commit

 

History

History
49 lines (30 loc) · 957 Bytes

README.md

File metadata and controls

49 lines (30 loc) · 957 Bytes

resourceful.js

Connect REST'ful API's to your Angular App

Why Resourceful.js

Resourceful.js is designed with the following goals:

  1. Up-front configuration. Define your resources once and re-use them again and again.
```
var User = Resourceful.resource('users');
var Message = User.resource('messages');
```
  1. Simple find/create symantics for manipulating resources:
```
var user = User.find(2);
user.name = 'joey';
user.save();
user.messages.create({body: 'Hello'})
```
  1. Creating services for your resources is trivial
```
factory('User', [function(Resourceful){
  return Resourceful.resource('users');
})
```
  1. Built-in support for singular resources (http://guides.rubyonrails.org/v2.3.11/routing.html#singular-resources)

Getting Started

Installation

npm install

bower install

karma start test/karma.js

Usage

TBD. See src/resourceful.js for current WIP