[QUESTION] - How can I integrate Express into this starter kit?
See original GitHub issueHey Cory
Coming from your React/Redux PluralSight course, I appreciated the integration with Express as it would allow me to setup /proxy
routes for private requests that won’t exist within our services, e.g. if I wanted to add these sort of auth paths to this sample:
https://github.com/auth0-blog/nodejs-jwt-authentication-sample/blob/master/user-routes.js
However, I’m not certain how I can control server-side routing with react-slingshot, and I don’t love the idea of generating a separate application to deal with the highly coupled proxy requests I’d likely need for performing secure operations.
Or maybe I’m thinking about this wrong. I’m having trouble wrapping my head around the separation between client and server requests, and how the front-end (bundle.js) would handle a request that the server could respond to.
Thanks for any help!
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
I managed to get Express working in my app by using this code:
Hopefully this helps someone out there.
Michael
@spartan082189 where did you put that code and how to run it? thanks.