Glitch is the fastest way to get an app or site up and running live on the web, but it runs apps on only one port. Sometimes you need more, like wh...
For further actions, you may consider blocking this person and/or reporting abuse
π UPDATE π
There's a breaking change in
http-proxy-middleware
between the v0.2.0 version that shipped with this app and the latest and greatest v1.0.0 βΒ I've updated the embedded app to address thisAlso, I added an MIT license because you should absolutely to remix and use this app as you see fit!
For some reason this proxy won't work for me, webpack-dev-server is starting up and working without issues, but sending a GET request to
https://my-glitch-app.glitch.me/api/ping
results in an errorCannot GET /api/ping
. There seems to be something going on with sockjs as well, as webpack-dev-server is having issues with live-reloading.Is there any reason why, with the configuration you've given, this fetch wouldn't work?:
Super-duper awesome. This is so damn helpful. You sir, are a saint and I canβt thank you enough. Have a great week and please keep up the good work. Earned my follow.
Thanks so much for the kind words. I'm glad you found it helpful!
Very Cool, was trying this out and ran into a cool feature with Firefox Nightly
dev.to/mindsgaming/quick-apps-on-f...
Oh, that's really neat. Thanks for sharing!
somebody has been drinking the mktg coolaid :) "glitch is ONE of the fastest ways to get an app or site up and running"
Would you suggest on how to add to this socket.io working with client or this is too much and should be done as a separate project for FE and BE?
And of course, very helpful article!
why don't you use 2 separates projects; one backend and one front end ?
You certainly could! π
If you just need a simple back-end API for your React project (or, alternatively, a basic React front-end for your API project), you can use the approach in this article. But if the complexity of the overall project grows past that, you're right βΒ it's probably better to use two different Glitch apps, one for the back-end, and one for the front-end.