I’ve been fiddling with so many things since last two weeks, everything from Node.js, ExpressJs, Angular, and trust me it’s a big big mixed bag. The problem with working on a new technology ( which get updates so frequently ) is that you read something somewhere, and then they don’t work when you try to implement them. I’ve been following three books for learning all these and trust me, it has never been so nasty for me. The simple rule is, understand the concepts, follow the latest documentation, try and run !
I’ve been able to install NodeJs on my local machine, create and run a few scripts based on console mostly related to events, well that is just old school stuff, my personal belief is that to learn something you need to implement it, try it again and again until you master them.
So I started working on a project, we are pretty sure that we’ll deploy it using NodeJs, but apart from NodeJs there are many other vital points that we have to cover, let’s say we perform an anatomy of deploying it.
- First we should be very clear about our abstract – What our project will really do.
- Tuning finer details of each modules
- Creating work-flow, how one method would yield to another, overall you can say compiling the project
- Discussion of features to be available on every screen.
- Creating Wireframes
- Designing the final UI
- Choosing the right platform
- Decision Making of various technologies to be used
- Deciding boundaries of each technologies
- Start Coding
After few formal and informal discussion we’ve actually compiled all the non-coding part, and I guess we’re pretty sure of using NodeJS with ExpressJS at backend and then using AngularJS with Twitter Bootstrap at the frontend, we’ll be using a NOSQL database system that’d be MongoDB implemented through the mongoose interface.
Our program architecture would be heavily based on MVC pattern.
Installation of NodeJS is pretty straight forward.
Download the official tarball from
- Extract the tarball
>tar xzvf node-v0.10.18.tar.gz
>sudo make install
You can test by using command node -v on console, it’ll show the version of installed node package.
Next we move on to installing NPM ( Node Package Manager) which I’ve covered here