Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jhusain committed Mar 30, 2015
1 parent 00a660a commit 83763be
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,9 @@ person.

The reason that the server model is called "virtual" is that the server JSON Object typically does not exist in memory or on disk. *A Falcor virtual model is like a little application server hosted at a single URL.* Instead of matching URL paths, the virtual model router matches one or more paths through a a single JSON model. The virtual model generates the requested subset of the JSON model on-demand by loading the data from one or more backend data stores.

The following virtual model simulates a person
The following virtual model simulates a person model on the server:

```JavaScript
// Server
var falcor = require('falcor');
var falcorExpress = require('falcor');
Expand Down Expand Up @@ -234,13 +235,11 @@ app.get('/person.json', function (req, res) {
});

var server = app.listen(80);

```
The virtual model exposes the entire JSON model at a single URL and accepts one or more paths in the query string. This allows the client to request as much of the graph as it needs within in a single HTTP request.
### asynchronous model view controller

Three-dimensional flexibility
### Async Model-View-Controller
Developers code against the isomorphic model using the same API they used to code against a normal JSON object.
Expand Down

0 comments on commit 83763be

Please sign in to comment.