Readme updates

This commit is contained in:
Ritchie Martori 2013-11-05 11:24:48 -08:00
parent f3d6cb9b54
commit 1b8de3673c
1 changed files with 21 additions and 3 deletions

View File

@ -1,4 +1,22 @@
loopback-explorer
=================
# loopback-explorer
Browse and test your LoopBack app's APIs
Browse and test your LoopBack app's APIs.
## Basic Usage
Below is a simple LoopBack application. The explorer is mounted at `/explorer`.
```js
var loopback = require('loopback');
var app = loopback();
var explorer = require('loopback-explorer');
var Product = loopback.Model.extend('product');
Product.attachTo(loopback.memory());
app.model(Product);
app.use(loopback.rest());
app.use('/explorer', explorer(app));
app.listen(3000);
```