[GH-ISSUE #147] Possible to mount in an existing Express app? #102

Closed
opened 2026-03-03 16:04:25 +03:00 by kerem · 2 comments
Owner

Originally created by @marclar on GitHub (Oct 29, 2018).
Original GitHub issue: https://github.com/mthenw/frontail/issues/147

I was thinking of including this in my project but mounting it as middleware, e.g.

const app = express();
const frontail = require('frontail');

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

app.use('/logs', frontail);

Can frontail be used in this way?

Originally created by @marclar on GitHub (Oct 29, 2018). Original GitHub issue: https://github.com/mthenw/frontail/issues/147 I was thinking of including this in my project but mounting it as middleware, e.g. ``` const app = express(); const frontail = require('frontail'); app.get('/', (req, res) => {res.send('Hello World!')}); app.use('/logs', frontail); ``` Can frontail be used in this way?
kerem closed this issue 2026-03-03 16:04:26 +03:00
Author
Owner

@mthenw commented on GitHub (Oct 29, 2018):

Hey, it's not possible with the current architecture. One option that could help could be just running express js server and piping output to frontail:

node server.js | frontail -

<!-- gh-comment-id:434073478 --> @mthenw commented on GitHub (Oct 29, 2018): Hey, it's not possible with the current architecture. One option that could help could be just running express js server and piping output to frontail: `node server.js | frontail -`
Author
Owner

@marclar commented on GitHub (Oct 29, 2018):

Thanks for the response, @mthenw. I was also thinking of starting frontail using child_process.execFile and then proxying requests from a route on my primary app to the frontail server/port.

<!-- gh-comment-id:434081411 --> @marclar commented on GitHub (Oct 29, 2018): Thanks for the response, @mthenw. I was also thinking of starting frontail using `child_process.execFile` and then proxying requests from a route on my primary app to the frontail server/port.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/frontail#102
No description provided.