node express js new project code example Example 1: initialize express app npx express-generator Example 2: express-generator $ npm install