How to build a portfolio site with Node.js
The challenge I had was to build a portfolio page with 7 samples and provide a considerate interface for a user to view them. I knew how the portfolio would look, but how would I organize it?
MVC, Models, Views, Controllers
Building my portfolio site with a Node.js application solved my problem. First, I defined separate routes for each project. Each route had its own set of controllers to manage the views. And with Express templating, I was able to reuse repeated components in the page for each project. For example, by writing partials for a header and a footer, I was able to insert that into a view instead of repeatedly writing the code in every view.
Constantly returning to the pattern of separating concerns allowed me to organize the application. By defining routes and controllers for each individual sample project, I was able to manage multiple projects contained within one application. The solution allows a balanced approach to creating applications as I am allowed to freely produce creative samples but manage the user interface accessibilty with Node.js.