We are going to use ExpressJS on the server page (server.js).
The server page we will make today is intended for a development environment. There are extra steps you would take prior to putting your app live.
BocaJS host, Damian Montero is the man to see about NodeJS server pages and cloud hosting. He presented on this at a recent BocaJS meetup. Check out Damian's GitHub for examples.
Check out the ExpressJS documentation: npm express
I used this for the image uploader. An image uploader is important for a CMS to have, but we can not write everything from scratch in one presentation. We are just using it for the image Uploader (an isolated feature on its own page).
I just looked for something quick and easy to include this important feature. The code is essential copy/pasted from their documantation: github: multer
Since the code is clearly explained in their documentation, I will just give you the image uploader code to copy/paste.
Note: depending on which version of NodeJS/ExpressJS you use, you may or may not need body-parser. My tutorials teach people how to set up Ubuntu programming environments and I know install/setup can get draining. I try to write my tutorials with code that will work out of the box on Ubuntu. There will be future tutorials on updates.