notes on creating new structure elements administration

obliquid edited this page Dec 12, 2011 · 6 revisions
  • models.js

    • add element schema
  • app.js

    • after defining models ( app.jsl.models.defineModels() ) save new model at app level: app.jsl.site = mongoose.model('site');
    • add routes loading: require('./controllers/site').defineRoutes(app);
  • controllers/

    • create controller file
  • views/

    • create at least the 3 base views (list, detail and form)