jansmolders86 / mediacenterjs

A HTML/CSS/Javascript (NodeJS) based Media center
http://mediacenterjs.com
1.29k stars 243 forks source link

Apps as fully qualified express apps #57

Closed th3l0g4n closed 10 years ago

th3l0g4n commented 10 years ago

Maybe instead of exporting various configurations in the index.js files, the apps should be build off express applications. This would make routing, maintaining, etc of the apps a lot easier as they can implement custom middlewares, routes and so on. These apps could be mounted under the foldername they resite in the bootstrapping process.

jansmolders86 commented 10 years ago

Hej thanks for taking the time to add some great ideas. Could you elaborate a bit more on how this could be accomplished? Do you have an example I can look at? Thanks!

th3l0g4n commented 10 years ago

Im afraid i have no example to hand, but i could try to modifiy an existing app this way so you can have a look if it comes to question. The basic concept is explained by the creator of express in this video: http://vimeo.com/56166857