Lesson 2 / 23

Installing Express

Set up a Node project and add the express package.

npm init + install

Every Express project starts as a normal Node package.

mkdir my-api && cd my-api
npm init -y
npm install express

Enable ESM imports

Add "type": "module" to package.json to use modern import express from 'express' syntax instead of require.