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

1 min read
// 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
