App reviews, troubleshooting, and recommendations
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi everyone,
I’m building a Shopify app where:
The frontend and authentication (including Prisma-based session handling) are built using Remix.
The backend APIs are built separately using Node.js, Express, and Mongoose.
For development:
I run the Remix app using npm run dev (handles Shopify app install and session).
I run the backend APIs using npm run server.
My question is:
Do I need two separate servers for deployment, or is it possible to deploy both the Remix app and the Express API on a single server?
If it’s possible to run everything on one server, what’s the best way to do that?
This is my backend server code:
I’d really appreciate guidance from anyone who has handled a similar setup. Thank you!
Thanks so much @Marco002 for the clarification—this makes a lot of sense! 🙌
Yes, I’d really appreciate it if you could share a sample setup that shows how to serve both the Remix app and Express API on a single server using middleware. An example with directory structure and how routing is handled between Remix and custom API routes would be super helpful.
Looking forward to seeing how you'd structure it!
Thanks again! 🙏