The MEN Stack: MongoDB, ExpressJS and Node.js


Free work-provided lunch of uber geek champion...

Free work-provided lunch of uber geek champions! #newsfromthecube #nftc #geek (Photo credit: slworking2)

After having read the blog post named “The MEAN Stack: MongoDB, ExpressJS, AngularJS and Node.js” by Valeri Karpov we decided to take a look at those technologies.

Some researches have leaded us to two books:  Professional Node JS and the Secrets of the JavaScript Ninja book.

Based on our readings we decided to implement several chapters from the Professional Node JS book (20, 21 and 25).

For info: We needed 5 working days to develop, understand, fine tune the code you have in front of you on our GITHub repository: https://github.com/ALT-F1/nodejs-professional

We have tackled some requirements :

  • to learn NodeJS and its dependencies like JadeExpressAsync and MongoDB
  • to learn how to write simple Create/Retrieve/Update/Delete (CRUD) applications

Which tools have we used to code?

  • in a first stage we have used Sublime Text 2
  • then we moved to WebStorm IDE at the very last stage due to our inability to debug Jade scripts; but WebStorm didn’t help much

Early difficulties?

  • Jade scripts were very hard to understand
  • the debug of Jade is painful i.e. we lose too much time correcting tabulations vs. spaces !!!!
  • The syntax of JavaScript functions is quite unusual, hopefully the first chapters of Secrets of the JavaScript Ninja book are goldmine to understand them
  • the code of the Professional Node JS book doesn’t fit today’ versions of the tools; it obliged us to adapt the code
  • We didn’t find a decent debugger (read visual) for NodeJS scripts
  • Understand how Grunt works, but we have deleted this part of scripts for the moment; now Grunt is mastered somehow

The future?

Advertisements

6 comments

  1. After using jade I would never go back writing HTML, it’s not that hard to grasp. My preference of indentation has always been tabs. I use node inspector for debugging.

  2. Indeed, we lack experience with Jade but the documentation could be drastically improved.

    Those two interactive tutorial have been our best allies to understand Jade:
    * http://cssdeck.com/labs/learning-the-jade-templating-engine-syntax
    * http://cssdeck.com/labs/jade-templating-tutorial-codecast-part-2

    Thanks for the reference of Node inspector.

  3. […] The MEN Stack: MongoDB, ExpressJS and Node.js (altf1be.wordpress.com) […]

  4. […] The MEN Stack: MongoDB, ExpressJS and Node.js (altf1be.wordpress.com) […]

  5. […] The MEN Stack: MongoDB, ExpressJS and Node.js (altf1be.wordpress.com) […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: