- Suitable for
- Rapid development where the applications need to undergo quick and frequent changes.
- Latency sensitive – Ideal for applications where page load time matters.
- Enterprises which are looking to improve developer productivity – Using the package management system called NPM, it is possible with Node.js to merge web and backend teams into one unit.
- The architecture is MVC (Model-View-Controller). It can also support other patterns such as Model-View-Presenter or Actors.
- Supports Event-driven, Object-oriented, Functional, Concurrency Oriented, Pub/Sub programming paradigms.
- Offers support for Ruby, CoffeeScript and TypeScript Scripting languages.
- Offers official IDE Support.
Things it does:
- It Communicates communicates with databases, web-sockets, middle-ware etc.
- It Serves serves web.
- 1 Getting Started
- 2 Folder structure
- 3 Website
- 4 Source Code
- 5 References
To begin with we need to install guide on installing node and npm for windows.and npm. npm is a package manager for node and helps us in easily deploying modules for added is a cool
- Install NodeJs from http://nodejs.org/
- Create project folder and setup the NodeJS project:
This will create package.json which contains project dependencies.
Our platform is broadly classified into the following folders:
- App Folder: Contains the models for data connections and api serving. Includes the files:
- : holds the data model. Specify specific queries (if any) and the collection name to fetch data from
- : Fetches data from the collection and serves it as an api
- Config Folder:
- : Contains the database information i.e. the address and the port to connect to
- node_modules folder: Contains various node modules which are installed to enhance functionality of the node server
- file: Contains a list of all the modules which need to be installed for the server to run
- file: The file utilizes the node modules to initialize data fetch from mongoDB and host our webpages over the network.
The folder structure for our project will look like this:
anmolkoul/node-dc-mongo · GitHub
node-dc-mongo – Source code for the project demonstrating data visualization using d3.js, dc.js, node.js and mongodb
Testing Node.js with Mocha and Chai – Michael Herman
Let’s look at how to test a Node.JS application with Mocha and Chai.
mjhea0/node-mocha-chai-tutorial · GitHub
Contribute to node-mocha-chai-tutorial development by creating an account on GitHub.
Easy Node Authentication: Setup and Local | Scotch
Interactive Data Visualization using D3.js, DC.js, Nodejs and MongoDB | Anmol Koul
Hello All, The aim behind this blog post is to introduce open source business intelligence technologies and explore data using open source technologies like D3.js, DC.js, Nodejs and MongoDB. Over the span of this post we will see the importance of the various components that we are using and we will do some code based…