Does anyone know of any tutorials or examples of applications built with SpineJS and Express? I've played around a lot with both but struggling to understand a few points. Currently I've got my back end working by doing coffee app.coffee
which runs express and basically serves as an API to the CouchDB. Then hem server
runs Spine, running off a different port - this can't be the way to go, surely?
- Do spine apps have to be built/served using Hem? It seems hem stitches all the front-end dependencies into a nice application.js file for you to serve up. Presumably this could be done using GruntJS or something and then served by Express, right? It would be a slight hassle to stitch all the dependencies together into the same handy application.js file but doable. Is there an easy way that I'm not seeing?
- Can the server (node/express) use the same Models and Controllers as
the front-end application -i.e. using Spine models/controllers in
Express. It says in the Spine documentation that this is possible but
I haven't been able to find any tutorials or examples. Is it just a
case of including
express = require 'express'
in the controllers?
Thanks