6.2 Installation
Express follows the Node Package Manager (npm) package standard: It’s freely available as an open-source project, subject to the MIT License and developed on GitHub. The Express package is available through a package manager of your choice, for example, npm. Before installing Express in your application, you must use npm init -y on the command line to generate the package.json file for your application and add the type field with the module value to use the ECMAScript module system. Then you must install Express via the npm install express command. After that, you can test the functionality of the framework with a simple application. Listing 6.1 shows the source code of this first step. You save the source code in a file ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access