Getting started: Website in Node.JS With Express, Jade & Stylus using Node.js Tools for Visual Studio
Since last few days I am trying my hands with NodeJS. I came across very nice article "A SIMPLE WEBSITE IN NODE.JS WITH EXPRESS, JADE AND STYLUS" by Ben Gourley. Really simple and easy startup.
https://twitter.com/pbdesk/status/496729892328071170
Taking this article as base, I implemented same using #NTVS (Node.js Tools for Visual Studio) using #VS2013. Modified code to use latest versions of dependencies for express, jade & stylus. Like with Express 4.0, all middleware (except static) have been removed and will need to be called separately, 'logger' needs to be exchanged with 'morgan'. Here is nice post on ExpressJS 4.0: New Features and Upgrading from 3.0.
Source Code
[stextbox id="black"]Entire running source code with Visual Studio solution & project files can found at Github[/stextbox]
https://github.com/pbdesk/NodeJS-Simple-WebSite/tree/clock
Here are code snippets for main files, all other files in public and views folder remain same as mention in above blog post.
[gist id = "ada0c3df7de1fdf6c46b" file = "package.json" ]
[gist id = "ada0c3df7de1fdf6c46b" file = "server.js" ]