Node gives you a fast server with an event driven, non-blocking I/O model, Express.js provides a simple way to create web sites with common features like routing, APIs and http verbs.
Now, when you perform a task, Node doesn't prevent other things from happening. That's called non-blocking. So, it's blazingly fast. Now that makes input and output operations like server requests super fast because the event model doesn't block other things from happening like with most traditional servers. So, why should you use Express with NodeJS? Now to make things faster, NodeJS is very small and it doesn't do a lot by itself. But it requires additional modules to make it really useful.
ExpressJS is a very popular module that adds web server functionality to NodeJS. And it also makes it easier to build websites and applications. It creates a routing mechanism so that your applications can pass along different types of requests easily. It also makes it easier to create an API or an application programming interface that can help you deal with data using ACTB verbs like get, put, and delete. Express also allows you to plug in other modules into the middle of the framework to perform certain types of tasks.
Express also lets you easily plug into other middleware, and that makes it a great building block for a customized framework.
In this course, Ray Villalobos walks through the process of creating full-featured websites with these technologies. First, find out how to install each package and leverage Node.js features from within Express. Then learn how to build a basic application with templating engines like EJS; create more flexible, modular code with includes and conditional statements; build APIs to manage HTTP requests to add and delete content dynamically; and configure more complex routing. Along the way, Ray implements features like customer feedback forms and real-time live chat, so you can see exactly what Node.js and Express are capable of.
- Handling HTTP requests with Node.js and Express
- Creating and modularizing routes
- Using templates
- Building flexible views
- Creating an API route
- Dealing with POST and DELETE requests
- Creating live chat features with Socket.IO