2.0.0 • Published 7 years ago

falcor-postman v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

falcor-postman

A graphical interactive in-browser Falcor queries validator IDE.

Usage

Npm install using the following command:

npm install --save falcor-postman

And use it inside your Express app:

const falcorPostman = require('falcor-postman');

const app = express();

const options = { middlewarePath: '/falcor-postman', falcorModelPath: '/model.json', app };

app.use(falcorPostman(options));

Where options is an object with the following properties:

nametypedescriptiondefault
middlewarePathstringOptional: path used to serve the falcor-postman app'/falcor-postman'
falcorModelPathstringOptional: falcor model path'/model.json'
appobjectThe instance of your Express.js appapp

UI

falcor-postman UI

Query: [["metrosById", [201], ["name"]]]

Example

Clone or download this GitHub repository then run the example app using the following npm commands:

npm install

npm run start

You should be able to open your browser and see the middleware running at the following URL: http://127.0.0.1:3000/falcor-postman