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.

Add Express.js support

See original GitHub issue

What we do under the hood is emitting a new asset from webpack at carte-blanche/index.html. (or whatever you specify in the dest option) This means that if you’re using express.js for routing, users will never find the Carte Blanche because express.js sends back a 404.

We should be exposing an easy-to-use route which redirects to Carte Blanche. I’ve never done this before, so maybe there’s a better way, but this seems like the nicest solution at the moment:

import { carteBlancheRoute } from 'carte-blanche';
/* … */
app.get('/carte-blanche/', carteBlancheRoute);

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ericclemmonscommented, Jun 5, 2016

Hi! It sounds like this overlaps with the request I have:

  • We have a component playground as part of our application under /components, which is part of our application’s routes.
  • I’ll be testing out this project this week (better to back the community than a private project, IMO!), but would want to “embed” it within the app.

It sounds like this is possible, based on the internals I took a cursory look at.

Is this issue for the same feature?

1reaction
mxstbrcommented, Jun 12, 2016

Done with v0.2! 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing - Express.js
Enter app.js , or whatever you want the name of the main file to be. If you want it to be index.js ,...
Read more >
express - npm
Fast, unopinionated, minimalist web framework. Latest version: 4.18.2, last published: 3 months ago. Start using express in your project by ...
Read more >
How to setup Express.js in Node.js - Robin Wieruch
A Node.js with Express tutorial to learn how to setup a Node.js application step by step from scratch ...
Read more >
How to Install Express JS using NPM (Step-By-Step)
Express JS Installation on a Windows Machine · Step 2 - Select the Windows installer suitable for your system (32-bit or 64-bit) ·...
Read more >
Setting up a Node development environment - MDN Web Docs
Adding dependencies · First create a directory for your new application and navigate into it: · Use the npm init command to create...
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