For EDX DEV283x, "Introduction to NodeJS," students are asked to create a sort of toy blog using the Express framework. This is my submission.
Besides express, I use body-parser, errorhandler, and morgan. I use node-dev to run the server.
The main program is server.js. Routes are in ./routes/ - index.js,
posts.js, and comments.js. Tests - which use curl(1) - are in test.sh.
Rather than storing a url property in each post, I assign each a
persistent id, as I do each comment. That allows deletions to occur
without changing the URL path to any element.
S. Morris Rose, @sm_rose, Github: smrose
None.