A graphical interactive in-browser IDE to validate Falcor queries.
JavaScript CSS HTML
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
middleware
src
test
.babelrc
.eslintrc
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
falcor-postman-ui.png
falcor-postman.js
package.json
webpack.config.js

README.md

falcor-postman

A graphical interactive in-browser IDE to validate Falcor queries.

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:

name|type|description|default ---|---|---|---|--- middlewarePath|string|Optional: path used to serve the falcor-postman app|'/falcor-postman'| falcorModelPath|string|Optional: falcor model path|'/model.json'| app|object|The instance of your Express.js app|app

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