A very simple blog web site using Node.js, CoffeeScript, and Express.js
This is a rough work in progress.
At this point there is code to handle a home page, an about page, a way to see a list of topics, and click on each topic to view the details of the post.
The data is kept in text files for now.
To run this code you need to have Node.js installed on your machine. If you don't have Node.js you can get it from nodejs.org
In addition to Node.js you'll need CoffeeScript. Once you've installed Node.js you can easily install CoffeeScript from the Terminal with the following command:
npm install -g coffee-script
Last but not least, you'll need to install Express and EJS by running the following command from the Terminal from inside the folder where you downloaded the source code
cd ~/dev/simple-blog npm install
EJS is a template engine for Node.js used to generate HTML pages with dynamic content. More info
How to run the site
Once you've downloaded the source code and installed the requirements listed above, just run the following command from the Terminal window:
...and browse to your http://localhost:3000 You should see the rather anti-climactic web site with the beginnings of what will eventually be a blog engine. Enjoy it!
Questions, comments, thoughts?
This is a very rough work in progress as I learn and play with Node.js.
Feel free to contact me with questions or comments about this project.