Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.2 KB

README.md

File metadata and controls

21 lines (16 loc) · 1.2 KB

This is a little proof of concept project to verify if a KeystoneJS application can work as a SPA using Backbone/Marionette.

The key difference is that the Keystone routes are set up as API routes, directly returning the model data from the MongoDB, instead of using static Keystone views. Backbone can then retrieve the data from those API endpoints and render the views.

The main advantage is that we still have a full admin application with user/permission management and still can create a fantastic, marvelous and blazingly fast SPA using Backbone/Marionette.

JSPM/SystemJS is used as a client-side module loader but could be exchanged for anything else.

The code was generated by the Keystone Yeoman generator and then adapted to show the blog posts configured by the admin app and stored in the MongoDB as Backbone application.

How To

  1. Install and start MongoDB
  2. npm install jspm -g
  3. npm install
  4. jspm install
  5. node keystone
  6. Now you can access the admin application and create some blog posts
  7. Go to localhost:3000/keystone/signin and sign in with admin/admin
  8. Create some posts
  9. The blog posts should be shown on localhost:3000/