Faable Docs
Comment on page

Node.js Configuration

To serve your APP from Faable check that the following is true.

Start script

Make sure your app has a start script inside package.json
"name": "app_name",
"scripts": {
"start": "<your start script here>"

Serve your app at $PORT

Start a server that listens on and serves http traffic using environment variable PORT to configure its port binding. This variable will be automatically configured in Faable Cloud when routing requests to your app.
const 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("", port, () => {
console.log(`Example app listening on port ${port}`);