Python and Javascript in same project?

Hey @Suds-p, like @househaunt I’d love to hear more about what you’re trying to do.

Glitch project’s only allow external traffic on a single port so you won’t be able to expose both a Node server and a Flask server to the internet - only one of those can run on the port Glitch is listening for (typically 3000, but it can change and - in Node - process.env.PORT will always have the right value provided you don’t overwrite that information).

If you wanted to have Flask running some sort of internal API, for example, it could run on some other port that would be available inside the project for Node to access, or vice versa. You might also be able to do something like what’s discussed in What's the port range users have at Glitch? to expose both servers by proxying requests through Node to Flask.

Hope this helps!

2 Likes