it can be used for both scenarios for Backend environment and you can even use it as front – end environment.
Following are the areas where Node.js is proving itself as a perfect technology partner.
I/O bound Applications
Data Streaming Applications
Data-Intensive Real-time Applications (DIRT)
JSON APIs based Applications
Single Page Applications.