A lot has changed on the web in the 11 months I’ve had this particular revision of my website. So time for an upgrade again.
Nodejitsu has finally announced the pricing for their service, and its cheap!
For the last year or so I've been coding Node whenever possible for client projects, but Ive always ended up hosting on a VPS. Heroku and similar services have been offering up hosting for a while, and even have a free tier (1 process usually). But these services have always been geared towards larger projects and the pricing reflects that. The new Nodejitsu plans have me excited by offering a better pricing structure for smaller sites and blogs!
The preferred method for creating an image you can zoom and pan on is to nest a UIImageView inside a UIScrollView. But I needed something a little different...
Node is a fast moving technology, and so to this applies to the libraries and tools. since I started this blog Node has been upgraded from 6.0 to 8.12, and express has migrated from 2.5.0 to 3.0.0 and mongoose is now at 3.2 as well.
Now that we are pulling our posts from the database the next step is to allow users to browse old posts. And just in time since this will be the 11th post to the blog.
The key items we need for people to be able to view an archive of the website is a previous and next button on the main page, and an archive listing of posts (in this case by month).
In addition to the above I'll be adding a new column to the blog posts allowing me to group posts.
It's been a little while since I've posted. Sorry about that; but I'm back.
Now, in the last post I went over how to store your blog posts in a database and retrieve them for editing, now we need to show them to the user and provide them with an rss feed to subscribe to your site with.
When coding an RSS feed for this site I saw that there really was no simple RSS templates written in jade. (Specifically since this site uses the Express framework, jade is already built in. ) I decided to create a jade template that will cover just about anyones needs for an RSS feed.
With the admin login page completed we now need a list of blog entries and a way to create and edit them. So to start lets give ourselves an admin interface for blog posts that we can later integrate into the main website.
This is a supplemental post to the previous tutorial to add in session handling into Mongo. You may have noticed after the last tutorial that when running the code in production you are alerted that Connect does not recommend the use of in-memory session storage for productions systems.