Previous Lecture Complete and continue  

  Node.js Frameworks

Let me give you some examples. So, keep it simple, stupid. KISS servers as the js Node.js core. You don't need any frameworks, you can just use Node.js core modules to build a full-blown HTTP server. Of course, that's a lot of work, and you don't want to reinvent the wheel.

So why not use some conventional configuration libraries like Restify, Total.js. And then, I personally prefer configuration over convention because it's easy to learn. There's less magic. Express, Hapi, Kraken are good examples of those frameworks. And then we have ORM and Isomorphic libraries. ORM stands for Object Relational Mapping or, if you use a NoSQL database, it probably would be Object Document Mapper, ODM.

Libraries, like LoopBack, Sails, Meteor, they already come with the abstraction to work with your database. So don't work with the database directly. There is a module and you use objects from that module and the interface from that module to work with your database. It could be SQL or NoSQL for example LoopBack. You can easily switch between databases just by changing the connector.

So let me tell you a little bit about this course and how we will proceed. We will have workshops. Fifty percent of the learning is workshops. Then you will have lectures like this. And then, discussion. You would see the forum on your right side, so go there and interact with other students. Ask and answer questions. That's another part of effective learning. If you spend more than five minutes on the problem, just go to your browser and type in Google. Stack, overflow other resources. Most likely, you will find an answer there. If not, then go to the discussion forum.

If you encounter a problem in the workshop itself, avoid posting in the discussion forum, because most likely no one will help you with that problem. Go to the repository of the workshop. That's where you might find a solution to your problem, because most likely someone else already encountered the same problem. Maybe it's your configuration, maybe it's your system, something like that.

It's very, very unlikely that there are bugs left in the workshop. But there still might be some bugs. But most likely, there are no bugs in workshops because they've been tested in live trainings and with hundreds and hundreds of people working on them. So, there's no workshop for this lesson. Enjoy, and then I'll see you in the next module.

Discussion
3 comments