DEV Community

Ahmed Gamal
Ahmed Gamal

Posted on

How to Deploy Node.js and MongoDB easily?

Deploying web apps with database isn't an easy task at all specifically when you want your app to load smoothly and fast and also be scalable. So in this guide you'll learn how to deploy your web app easily on the cloud.

1. Create Account on DPLYR

DPLYR is the tool we're using today. To create an account go to https://dplyr.dev
DPLYR front page

2. Create a VM on your favourite cloud services provider

Choose the cloud provider you love. I found that DPLYR has made a complete guide on how to create a VM on AWS EC2 Here it's

3. Fill the new deployment form

When you sign in you'll find yourself in your home page where you can find your past deployments click on the new deployment button and fill the form fields note that if you used the DPLYR VM guide you won't need to fill the username field. Choose the technology "Node.js" and the database "MongoDB" the database username password are the ones you used in your connection string pick whatever you want. In the project URL field put the git repo containing your web app link.
DPLYR form page

4. VOILA!!! the website is now deployed

DPLYR magically deploys your app and gives you the link of the website

Top comments (0)