task

express modules

[previously]

  1. ] express js
    1. ] understanding module.exports
    2. ] and exports.
    3. ]

[currently]

  1. ] examples
    1. ] mainMenu as module;
    2. ] races as module;
    3. ] returning an object
    4. ] returning a function
    5. ] returning
  2. ] 'menuMain' as a module
    1. ] PRB - have to SET the values for menu properties
    2. ] first example uses hardcode settings , ex var currentRace = '2015-16'
    3. ] THEN returns a menuObject, STILL need to dynamically set the values of the menu   
    4. ]
    5. ] NEEDS to return a menuObject, with data from the Races array currently in home.js
  3. ] 'races' as a module
    1. ] PRB
    2. x]  added the Races data set , hardcoded array of Race objects
    3. ] added a currentRace object
  4. ]  PAGE home
    1. ] set current race
    2. ]
  5. ] 2015-06-15 PAGE index
    1. ] results linke

[next]

  1. ] learn express modules
  2. ] gq = express js example module
  3. ] http://openmymind.net/NodeJS-Module-Exports-And-Organizing-Express-Routes/ Karl Seguin, 2012-06
  4. ] http://darrenderidder.github.io/talks/ModulePatterns/#/1 ( + cool site design, clean, simple effective use of animation)
  5. ] http://www.sitepoint.com/understanding-module-exports-exports-node-js/
  6. ] http://justjs.com/posts/creating-reusable-express-modules-with-their-own-routes-views-and-static-assets 
  7. ] http://www.hacksparrow.com/node-js-exports-vs-module-exports.html
  8. ] gq = calling a function in an express module
  9. ] http://stackoverflow.com/questions/5778245/expressjs-how-to-structure-an-application
  10. ] https://scotch.io/tutorials/angularjs-best-practices-directory-structure
  11. ] https://gist.github.com/pinceladasdaweb/11334293
  12. ] https://github.com/73rhodes/talks/tree/master/ModulePatterns
  13. [organizing your routes]
  14. ] http://codetunnel.io/an-intuitive-way-to-organize-your-expressjs-routes/
  15. ] http://www.terlici.com/2014/09/29/express-router.html
  16. ] http://stackoverflow.com/questions/9832019/how-to-organize-large-node-js-projects 

]

http://joeriks.com/2011/01/26/a-mvc-ish-approach-to-webmatrix-webpages/

http://rob.conery.io/2011/01/13/thoughts-on-webmatrix/ 

Details Photos Edit more

Details

ID: 5289

NAME: CREATE-article-express-modules

DESCRIPTION: 5289 - ] working with modules ] exports.modules,

START DATE TIME: 2015-06-15 21:40:20

EST DURATION: 01:00:00

END DATE TIME: 2015-06-15 22:40:20

STATUS: To-Do

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities