diff --git a/guide/english/nodejs/express/index.md b/guide/english/nodejs/express/index.md index 213503041b..f4232f1a61 100644 --- a/guide/english/nodejs/express/index.md +++ b/guide/english/nodejs/express/index.md @@ -3,13 +3,13 @@ title: ExpressJS --- ## ExpressJS -When it comes to building web applications using Node.js, creating a server can take a lot of time. Over the years Node.js has matured enough due to the support from the community. Using Node.js as a backend for web applications and websites help the developers to start working on their application or product quickly. In this tutorial, we are going to look into Expressjs which is a Node.js framework for web development that comes with features like routing and rendering and support for REST APIs. +When it comes to building web applications using Node.js, creating a server can take a lot of time. Over the years Node.js has matured enough due to the support from the community. Using Node.js as a backend for web applications and websites helps the developers to start working on their application or product quickly. In this tutorial, we are going to look into Express.js which is a Node.js framework for web development that comes with features like routing and rendering and support for REST APIs. ## What is Express? -Express is the most popular Node.js framework because it requires minimum setup to start an application or an API and is fast, and unopinionated at the same time. In other words, it does not enforce its own philosophy that a application or API should be built in a specific way, unlike Rails and Django. Its flexibility can be calculated by the number of `npm` modules available which makes it pluggable at the same time. If you have basic knowledge of HTML, CSS, and JavaScript and how Node.js works in general, in no time you will be able to get started with Expressjs. +Express is the most popular Node.js framework because it requires minimum setup to start an application or an API and it's fast and unopinionated at the same time. In other words, it does not enforce its own philosophy that an application or API should be built in a specific way, unlike Rails and Django. Its flexibility can be calculated by the number of `npm` modules available which makes it pluggable at the same time. If you have basic knowledge of HTML, CSS, and JavaScript and how Node.js works in general, you will be able to get started with Expressjs in no time. -Express was developed by TJ Holowaychuk and is now maintained by Node.js foundation and open source developers. To get started with the development using Express, you need to have Node.js and npm installed. You can install [Node.js](https://nodejs.org/en/) on your local machine and along with it comes the command line utility `npm` that will help us to install plugins or as called dependencies later on in our project. +Express was developed by TJ Holowaychuk and is now maintained by the Node.js foundation and open source developers. To get started with the development using Express, you need to have Node.js and npm installed. You can install [Node.js](https://nodejs.org/en/) on your local machine and along with it comes the command line utility `npm` that will help us to install plugins or so called dependencies later on in our project. To check if everything is installed correctly, please open your terminal and type: @@ -24,19 +24,19 @@ If you are getting the version number instead of an error that means you have in ## Why use Expressjs? -Before we start with mechanism of using Express as the backend framework, let us first explore why we should consider using it and the reasons for its popularity. +Before we start with the mechanism of using Express as the backend framework, let us first explore why we should consider using it or the reasons of its popularity. * Express lets you build single page, multi-page, and hybrid web and mobile applications. Other common backend use is to provide an API for a client (whether web or mobile). -* It comes with a default template engine, Jade which helps to facilitate the flow of data into a website structure and does support other template engines. +* It comes with a default template engine, Jade which helps facilitate the flow of data into a website structure and does support other template engines. * It supports MVC (Model-View-Controller), a very common architecture to design web applications. * It is cross-platform and is not limited to any particular operating system. -* It leverages upon Node.js single threaded and asynchronous model. +* It leverages upon Node.js' single threaded and asynchronous model. Whenever we create a project using `npm`, our project must have a `package.json` file. ### Creating package.json -A JSON (JavaScript Object Notation) file contains every information about any Express project. The number of modules installed, the name of the project, the version, and other meta information. To add Expressjs as a module in our project, first we need to create a project directory and then create a package.json file. +A JSON (JavaScript Object Notation) file contains every information about any Express project. The number of modules installed, the name of the project, the version, and other meta information. To add Express.js as a module in our project, first we need to create a project directory and then create a package.json file. ```shell mkdir express-app-example @@ -68,7 +68,7 @@ Now we have `package.json` file, we can install Express by running the command: npm install --save express ``` -We can confirm that Express has correctly installed by two ways. First, there will be a new section in `package.json` file named `dependencies` under which our Express exists: +We can confirm that Express has correctly installed in two ways. First, there will be a new section in `package.json` file named `dependencies` under which our Express exists: ```json {