Express

Express.js is a popular web framework that can easily be added to your app on Boltz with the code below.

If you export an express app under the request module export, you can have content served through express. Make sure you include express in your package.json dependencies.

index.js
const express = require('express');

const app = express();

app.get('/', (req, res) => {
    res.status(200).send('Hello World!').end();
}

exports.request = app;

Last updated