...

/

Appendix: Express Setup on a Local Machine

Appendix: Express Setup on a Local Machine

Learn how to set up a Node and Express development environment on a local machine.

Express setup

In order to build a Node and Express application, we just need to initialize a Node environment and install a few npm packages, as well as their corresponding declaration files as follows:

mkdir node-express-app
cd node-express-app
npm init
npm install express
npm install @types/express --save-dev

We have created a directory named node-express-app, changed into this directory, and then initialized a Node ...