question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UI Routes to existing Express/Restify App

See original GitHub issue

I searched issues and couldn’t seem to find anything, is it possible to just add the Kue UI to my existing application?

For instance

var restify = require('restify');
var kue = require('kue');
var server = restify.createServer({
    name: 'my-app',
    version: '1.0.0',
});

// Setup Server
server.use(restify.acceptParser(server.acceptable));
server.pre(restify.fullResponse());
server.use(restify.dateParser());
server.use(restify.queryParser());
server.use(restify.jsonp());

// Send Kue UI routes to Kue
server.use('/kue', kue.ui);

// My actual routes:
server.blahblah()

server.listen( process.env.PORT || 8080 );

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
bilbofcommented, Jun 7, 2017

I was able to get this to work locally with

server.use('/kue', kue.app);

However, I haven’t yet managed to get this to work on Heroku.

0reactions
carvalhoviniciusluizcommented, Feb 27, 2018

i’m having trouble with resify too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node js using express and restify together in one app
Is it possible I can use express and restify together in one application? var restify = require('restify'); var mongoose = require('mongoose'); var server...
Read more >
Build a REST API with Node.js, Restify & MongoDB
In Depth Guide on Building a REST API with Node.js, Restify & MongoDB · 1. Create Your Directory · 2. Install Required Dependencies...
Read more >
restify/node-restify - Gitter
Hello everyone! I'm looking for some information about creating NodeJS RESTful API server for mobile apps, maybe somebody knows, posts or tutorials? restify...
Read more >
In Depth Guide on Building a REST API with Node.js, Restify ...
With the multitudes of JavaScript frameworks available these days, ... Express and Koa; however, Restify seems to be the clear winner.
Read more >
Express Tutorial Part 4: Routes and controllers - MDN Web Docs
First we create routes for a wiki in a module named wiki.js. The code first imports the Express application object, uses it to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found