For writing, running, and debugging code with just a browser, and a sample Node.js Web App as in the following Code Snippet:
const express = require('express');
const app = express();
const port = 3000;
app.get('/', (req, res) => {
res.send("Node.js Version: " + process.version + "\n");
});
app.listen(port, () => {
console.log(`Server started on port: ${port}`);
});
Azure Cloud Shell Output:
$ curl http://localhost:3000
Node.js Version: v16.20.2
Azure Cloud Shell Web Preview opens: https://ux.console.azure.com//proxy/3000/ only to show this error:
Cannot GET /proxy/3000/
After the following steps:
Configure port to preview Valid ports include [1025-8079] and [8091-49151]
3000
Open and browse
What's missing?