Let's perform the following steps to create a new Express web server:
- First, let's create a new Express project using express-generator's express command:
express my-express-project
- A new Express project will be scaffolded out in the /my-express-project directory. After installation, we will need to install our project's dependencies defined in the generated package.json file:
cd my-express-project
npm install
- Finally, we can start our Express project the same way we started our Angular project using the NPM script's start command, as follows:
npm start
- When you navigate to http://localhost:3000/ in your web browser, you will see a Welcome to Express page displayed.