Question

how can i deploy MERN stack web app to digital ocean App Platform

Posted November 27, 2021 263 views
MongoDBNode.jsReact

i want to host my entire ecommerce to digital ocean app platform like mongodb,react and expree server

my github repo consist of 2 seprate folders one for backend and other for react frontend

thank you :D

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

To deploy your express (node.js) application to App Platform, see this
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-20-04

To deploy react (or any Single Page Application, e.g Angular, Vue etc), see this
https://www.digitalocean.com/community/tutorials/how-to-deploy-a-react-application-to-digitalocean-app-platform

To connect to MongoDB, you can use DigitalOcean’s Managed Database solutions attached to your App on App Platform, see this
https://www.digitalocean.com/community/tech_talks/making-a-node-mongodb-app-on-digitalocean

by Lisa Tagliaferri
by Kathleen Juell
Node.js is an open-source JavaScript runtime environment for building server-side and networking applications. The platform runs on Linux, macOS, FreeBSD, and Windows. Though you can run Node.js applications at the command line, this tutorial will…