In Part 1, Getting Started With Expressjs, we did learn a lot about how Expressjs works as a Node.js framework. We built a simple and generic web server in the previous article that had two routes to function. We then discussed other paradigms such as devDependencies, REST services and the general anatomy of an Express application. In this article, we are going to continue to build upon the previous article, and we will start by generating a boilerplate project that can be used in any scenario, whether creating an application using Express entirely or just building a REST API using it.Read More
With an Expressjs application, you can make use of all popular databases available to perform several operations such as Create, Read, Update and Delete (CRUD operations). This tutorial will provide you an overview of a database, we are going to use with our Expressjs application, called MongoDB. Further, we will be looking into pragmatic concepts like what is an ODM/ORM, Schemas, Models and connecting the MongoDB database with our Express application.
Other popular options that we could use with Expressjs are PostgreSQL, MySQL, SQLite, Redis, etc.Read More
In previous articles, we discussed node js network programming also we discussed how to build a basic web server using Node.js alone. By Node.js alone, I mean using its core API modules such as URL and HTTP. In the second article, we glimpsed briefly on how Node.js works behind the scenes. There is a lot in depth we haven't discussed such as working of libuv and role V8 in depth. I consider those things out of the scope of these articles since our sole focus is to get started in web development and build production level API servers. Using Expressjs, we can do that.Read More