What is Framework?
A basic structure of a software system.
A framework is a combination of libraries, helpers, and tools that provide a way to effortlessly build an Applications.
The key aspects of any framework are – its architecture and features
Features of Framework?
- Fast Development
- Easy Customization
- Supports of Libraries
Benefits of using Node js Framework:
Node js framework enables developers to build fast, secure and scalable Applications.
- Speed-up custom web application development
- Working with databases more efficiently (Using ORM & ODM etc).
- Protect websites from targeted security attacks.
- Unit Testing Supports.
- Easy Maintainance
- Built-in Libraries
Express.js is the most popular Node.js framework which provides a robust set of features for web and mobile applications.
npm install express --save or npm i express
You can use Express application generator to quickly create an application skeleton.
Key Features of Express.js:
- Express.js supports MVC Architecture
- RESTful APIs Supports
- Templating Engines - Jade, EJB, Handlebar etc
- Database (RDBMS, NoSQL) - ORM/ODM (Mongoose, Sequalize) supports
- Error Handling
AdonisJs framework runs on almost all major operating systems. It offers you a clean and stable API to build Web apps and micro-services.
npm i -g @adonisjs/cli adonis new yardstick cd yardstick adonis serve --dev
Koa js next generation web framework for node.js.
Hapi is a rich Node.js framework for building applications and services.
LoopBack is provides a platform for building RESTful APIs and Micro-Services using Node.js
It is an open-source highly-extensible with GraphQL Support Node.js framework for quick RESTful API development.
Sails.js is a Open-source, MVC Node's framework developed at the top the Node.js environment for building custom, enterprise Node.js web applications and APIs.
A progressive Node.js framework for building efficient, scalable, and enterprise level server-side applications. it uses TypeScript.
KeystoneJS is a framework for developing dynamic websites, apps, CMS and APIs using Node.js, NoSQL (MongoDB | PostgreSQL). It also provides in-built support of CMS/Admin Dashboard.
A framework for real-time applications and REST APIs
Key Features of Feathers:
- Flexible Plugins Supports
- Database Adapters - (In Memory, RDBMS, NoSQL etc)
Install & Create Feathers App:
npm install -g @feathersjs/cli mkdir my-app cd my-app feathers generate app npm start
What is Model View Controller (MVC)?
MVC stands for "Model-View-Controller." It is a Architectural Pattern.
Model It is for Business Logic.
View It is responsible for Physical Representation - User Interface, Layouts, etc.
Controller It handles & manage all requests of Applications.
How to choose the best Node js framework for your project?
- Libraries Supports
- Documentation & Learning Curve
- Community Supports
- LTS & Versions upgrading
- Most Important - Your Knowledge of that Particlar Framework