Lesson 2 / 25
Installing Express
Set up a Node project, install Express and use ES module imports in package.json.
npm init + install
Every Express project starts as a normal Node package.
mkdir my-api && cd my-api
npm init -y
npm install expressEnable ESM imports
Add "type": "module" to package.json to use modern import express from 'express' syntax instead of require.