NODE.ACS (M)VC framework demo.
https://github.com/visionmedia/express/wiki/Migrating-from-2.x-to-3.x
This app is using express-partials(https://github.com/publicclass/express-partials) for view system.
Things to do,
- custom fields
- geo coords
- pagination
optional
- better chats
- styles
- ajax object search on textfields
Routes: defined in config.json under routes array. { "path": "/login", "method": "get", "callback": "application#login" } path: url path. method: only works for get & post by default(I believe). callback: #
- to select all { "path": "*", "method": "get", "callback": "application#page_not_found" }
Flash message: a flash message something similar to flash on rails req.session.flash = {msg:"Please login first.",r:0}; msg: flash message, r: flag if flash has been read
- Quick Start (CMS)
-Using express.js as web app framework
-Package.json,
-app.js
- initialize ACS
- setup express.js settings
- choose view system for express.js: express-partials -Routing: config.json
- routing: determined which controller#function to use
- filters
- websocket -Views
- Assets, (public)/images, (public)/css, (public)/js
- Methods and functions(actions)