Over the past couple of days I’ve made more progress on the Node project I started. If you haven’t read the first article, click that previous link for the background. Here’s what I’ve been able to do since my first post.
I used the excellent Nodemailer module to set up email support for my application. All I needed was the ability to send an email to myself and this worked fine. Here’s a code snippet from my app.js showing this in action.
The only oddity I ran into was that even though I set the From to be your name and email address, when it shows up in Gmail it is always my email address. I’m assuming that is a Gmail security thing. If anyone knows better, let me know. Since I include the sender’s email address anyway this isn’t a deal breaker for me.
I tell ya what. I never want to write SQL again. This isn’t the first time I used Mongo but my god - what a pleasure. Here are a few examples.
I think that $or search is the one I like the most.
I hate the Jade templating system and EJS is ok, but my favorite templating system is Handlebars. The HBS module gives me access to that inside my views. I can even extend it with my own utility functions. Here is one sample view:
Yeah, Disqus. Done.
I love AppFog. How much do I love AppFog? AppFog is this:
Let me describe what their process was like for me.
- I signed up.
- I made a new app.
- I clicked about 2 buttons to add Mongo support.
- I installed the command line tool via npm.