L7. āš”ļø Starting with Express.js – Node.js Framework

// In Node.js, creating APIs needs a lot of code 🧱
// So we use a framework -> Express.js for optimized code šŸ’”

console.log("Starting with Express.js");

// Install express using npm šŸ“¦
// Command: npm i express

// Express gets added into node_modules šŸ—‚ļø

console.log("Express installed successfully");

✨ Explanation

  • Node.js by itself needs more lines of code to create servers and APIs.

  • Express.js is a lightweight framework that makes API development easier and cleaner.

  • It must be installed using npm i express.

  • After installation, it appears in the node_modules folder and can be imported into your project.

0
Subscribe to my newsletter

Read articles from Sahana S Acharya directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Sahana S Acharya
Sahana S Acharya