Quickstart: Express
{
"name": "app_name",
"scripts": {
"start": "<your start script here>"
}
}Serve your app at $PORT
$PORTconst express = require("express");
const app = express();
// NOTE: To work on Faable Cloud, use the $PORT environment variable
const port = process.env.PORT;
app.get("/", (req, res) => {
res.send("Hello World!");
});
app.listen("0.0.0.0", port, () => {
console.log(`Example app listening on port ${port}`);
});Deploy to Faable
Last updated