This project is a demonstration of how to create a stateless Virtual JSON Graph object on your application server using a Falcor Router and some express middleware.
Clone the repo: https://github.com/Netflix/falcor-express-demo.git
cd falcor-express-demo
npm install
npm start
Open your browser and visit: http://localhost:9090
Changing the index.html
file will refresh the browser automatically using
LiveReload. Changing the server index.js
file will restart the server
using nodemon.
This will download a webpage which makes several requests from data from the model.json resource on the application server, and prints the results to the console. You will not see anything on your screen until you open up the developer console. Checkout the source of the website to see what types of operations can be performed on the model.json file on the server.
For more information on how the Router works and the structure of model.json, see the Router source at https://github.com/Netflix/falcor-router-demo.