Step 1

Create a folder younote-api. Open the terminal and change directory to your project folder. Run the command npm init -y. Then, install Express: npm install express.

Create a index.js file with the following content.

const express = require("express");
const app = express();
const port = 4567;


app.listen(port, () => {
  console.log(`Server is listening on http://localhost:${port}`);
});

You can run your Express app now (node index.js in the terminal).