edit-task
Home
Up
Delete
Task Name:
Task Description:
5289 - ] working with modules ] exports.modules,
TaskGroup ID:
Start Date:
Start Time:
Duration:
Priority:
Status:
To Do
Completed
In Process
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h1 style="text-align: center;">express modules</h1> <h2>[previously]</h2> <ol> <li><strong>] express js</strong></li> <ol> <li>] understanding module.exports</li> <li>] and exports.</li> <li>]</li> </ol></ol> <h2>[currently]</h2> <ol> <li><strong>] examples</strong></li> <ol> <li>] mainMenu as module;</li> <li>] races as module;</li> <li>] returning an object</li> <li>] returning a function</li> <li>] returning</li> </ol> <li><strong>] 'menuMain' as a module</strong></li> <ol> <li>] PRB - have to SET the values for menu properties</li> <li>] first example uses hardcode settings , ex var currentRace = '2015-16'</li> <li>] THEN returns a menuObject, STILL need to dynamically set the values of the menu </li> <li>]</li> <li>] NEEDS to return a menuObject, with data from the Races array currently in home.js</li> </ol> <li><strong>] 'races' as a module</strong></li> <ol> <li>] PRB</li> <li>x] added the Races data set , hardcoded array of Race objects</li> <li>] added a currentRace object</li> </ol> <li><strong>] PAGE home</strong></li> <ol> <li>] set current race</li> <li>]</li> </ol> <li><strong>] 2015-06-15 PAGE index</strong></li> <ol> <li>] results linke</li> </ol></ol> <h2>[next]</h2> <ol> <li><strong>] learn express modules </strong></li> <li>] gq = express js example module</li> <li>] <a href="http://openmymind.net/NodeJS-Module-Exports-And-Organizing-Express-Routes/" target="_blank">http://openmymind.net/NodeJS-Module-Exports-And-Organizing-Express-Routes/</a> Karl Seguin, 2012-06</li> <li>] <a href="http://darrenderidder.github.io/talks/ModulePatterns/#/1" target="_blank">http://darrenderidder.github.io/talks/ModulePatterns/#/1</a> ( + cool site design, clean, simple effective use of animation)</li> <li>] <a href="http://www.sitepoint.com/understanding-module-exports-exports-node-js/" target="_blank">http://www.sitepoint.com/understanding-module-exports-exports-node-js/</a></li> <li><span style="text-decoration: line-through;">] <a href="http://justjs.com/posts/creating-reusable-express-modules-with-their-own-routes-views-and-static-assets" target="_blank">http://justjs.com/posts/creating-reusable-express-modules-with-their-own-routes-views-and-static-assets</a> </span></li> <li>] <a href="http://www.hacksparrow.com/node-js-exports-vs-module-exports.html" target="_blank">http://www.hacksparrow.com/node-js-exports-vs-module-exports.html</a></li> <li>] gq = calling a function in an express module</li> <li>] <a href="http://stackoverflow.com/questions/5778245/expressjs-how-to-structure-an-application" target="_blank">http://stackoverflow.com/questions/5778245/expressjs-how-to-structure-an-application</a></li> <li>] <a href="https://scotch.io/tutorials/angularjs-best-practices-directory-structure" target="_blank">https://scotch.io/tutorials/angularjs-best-practices-directory-structure</a></li> <li>] <a href="https://gist.github.com/pinceladasdaweb/11334293" target="_blank">https://gist.github.com/pinceladasdaweb/11334293</a></li> <li>] <a href="https://github.com/73rhodes/talks/tree/master/ModulePatterns" target="_blank">https://github.com/73rhodes/talks/tree/master/ModulePatterns</a></li> <li><strong>[organizing your routes]</strong></li> <li>] <a href="http://codetunnel.io/an-intuitive-way-to-organize-your-expressjs-routes/" target="_blank">http://codetunnel.io/an-intuitive-way-to-organize-your-expressjs-routes/</a></li> <li>] <a href="http://www.terlici.com/2014/09/29/express-router.html" target="_blank">http://www.terlici.com/2014/09/29/express-router.html</a></li> <li>] <a href="http://stackoverflow.com/questions/9832019/how-to-organize-large-node-js-projects" target="_blank">http://stackoverflow.com/questions/9832019/how-to-organize-large-node-js-projects</a> </li> </ol> <p>]</p> <p><a href="http://joeriks.com/2011/01/26/a-mvc-ish-approach-to-webmatrix-webpages/">http://joeriks.com/2011/01/26/a-mvc-ish-approach-to-webmatrix-webpages/</a></p> <p><a href="http://rob.conery.io/2011/01/13/thoughts-on-webmatrix/">http://rob.conery.io/2011/01/13/thoughts-on-webmatrix/</a> </p>