Menu bars

Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Friday, 24 June 2016

Understanding Node+Express application flow.

As installation has explained in the last article now we want to start with the project and structure. It is very important to understand the proper directory structure of the node app since we need to map the relevant files in the right directory to align with the MVC pattern that node follows. I have found out the following article which explains the node directory structure perfectly.

Check this article

Confused over export and require ? 


I was confused too much on export, module and require stuff of nodejs until i have came across the following article which deals with the same. what i have taken from the article is that, a file is considered as a module in nodejs and if you want to use it in another file(module) then you need to export it. Simple stuff !!

Router everywhere !!


If you are start making Restful webservices we need to use routers very frequently to create different routes for our RestWebservices. They have introduced mini express in router and if you want to understand how the router works and the different functions that can be done in router like params,use,get etc.



Understanding the basic components using in the app.js


It is essential to know the components that we are using in our landing file that is app.js and their role in this particular context. So i just thought of going through each package that we are using in the app.js file.

Path - Just to know 


Path is the package  to deal with all the directory level operations to be done. __dirname gives you the current working directory and you can do many other operations like join(), basename() etc.

Error handling in Node


Error handling is very important feature every application should have. It will make the application maintainable and debuggable. The Nodejs style of error handling is little different which involves middle-wares which will make your job damn easy. check the links below.


Logging

Logging can be one of the important thing is to be done with any software application. Winston is one of the finest logger that you can use for Nodejs. Read more 

All about passing the data in Nodejs routes

Passing the data in the routes are very important to deal with the flexibility of the microservcie framework. As Node stands out as an exceptional framework to create microservices it is important to know how to pass the data.

This article talks about each and everything about passing the data between routes. 









No comments:

Post a Comment