Can I deploy a PERN(Postgres,Express,React,Nodejs) stack web app to Digital Ocean? How much will it cost?

Posted January 8, 2022 193 views

I am made a Pern stack app for a school which can perform crud operations. The database is Postgres and it will have 10 tables and approximately 2000 rows for each table. How much will hosting this app cost monthly?

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

Hi there,

Yes, this tech stack could be set up on a single $5/mo Droplet. However the size of the server would depend on the complexity of the app, the amount of traffic and the resources that the app needs.

What I usually suggest is:

  • Setup a small Droplet
  • Configure it by installing all of the necessary services
  • Then deploy your app
  • Finally, run some load tests as per this tutorial here:

That way you will be able to tell how much traffic your app can handle with the resources that you’ve selected.

If you see any bottlenecks like CPU or RAM, then you could upgrade the Droplet accordingly. This way you would know how much traffic you can handle and be ready for production.

In case that you need this, there are a lot of resources on the DigitalOcean community site that would help you with the installation and configuration of the Droplet. For example:

  • Here is how to set up Node.js for production on an Ubuntu server:

  • Here is also a quick video on how to do that too:

Hope that this helps.

by Brian Boucheron
In this article, we'll talk about the server side of web performance optimization: how fast can your server respond to your user's requests? We'll review the general landscape of load testing, step through a plan to find your server's maximum practical response rate, and discuss some options for open source load testing software.