Simplest node express web API

For frontend dev, the simplest web API to joke around with.

Create the project and install express package

npm init
npm install express

Create server.js file in the root.

// server.js
const express = require('express');
const app = express();

app.get('/', (req, res) => {
    res.send({ message: "I'm here"});
});

app.listen(3000, () => console.log('Listening on port 3000!'));