A web application framework provides you with a simple API to build
websites, webapps and backends. You need not worry about low level
protocols, processes, etc.
Mongoose is a client API for node.js which makes it easy to access our database from our koa application.
What is koa?
Koa provides a minimal interface to us to build our applications. It is a very small framework(600 LoC) which provides us the required tools to build our app and is quite flexible, there are numerous modules available on npm for Koa, which can be directly plugged into it. Koa can be thought of as the core of express.js without all the bells and whistles.Why koa?
Koa has a small footprint(600 LoC) and is a very thin layer of abstraction over node to create server side apps. It is fully pluggable and has a huge community. This also allows us to easily extend koa and use it according to our needs. It is built using the bleeging edge technology(ES6) which gives it an edge over older frameworks like express.Pug
Pug(earlier known as Jade) is a terse language for writing HTML templates. It:- Produces HTML
- Supports dynamic code
- Supports reusability (DRY)
MongoDB and Mongoose
MongoDB is an open-source, document database designed for ease of development and scaling. We'll use this database to store data.Mongoose is a client API for node.js which makes it easy to access our database from our koa application.
No comments:
Post a Comment