Using a server such express with a contentful application

I am creating a contentful app. The app needs to call a third-party API. To get around CORS issues and for other requirements, I would like to include an express server in my bundle.

I can get this working locally using a proxy that points to a different port. However, I am unsure how to get this working in the bundle that I deploy to contentful. Does anyone have a working prototype?