Question

Best way to deploy react/django web app on digital ocean

Posted May 11, 2021 814 views
DigitalOceanPythonDjangoDeploymentStorageMachine LearningReactSQLite

I am building web application with django as a backend and reactJS as a frontend. I need to know which hosting solution works best for me ?
What I am looking for:

  1. I need to store a lot of images so I need a lot of disk space (my estimate around 500GB at a moment)
  2. Currently, there would only be 50 users of my app using my website 24/7 so right now I may not need huge amount of computing power but I may be doing some face recognition or detection on around 10,000 per day.
  3. Also, I am not sure how this django + react app works with deployment so if you can guide me ? like cloud hosting or linux virtual machine? I have no idea about it which is best in terms of performance+pricing

Thanks in advance

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

Hello,

You could start with the following Droplet Image from the Marketplace with Django preinstalled:

https://marketplace.digitalocean.com/apps/django

The size of the server would really depend on the application itself and the resource utilization. In most cases, you could start with a smaller droplet and upgrade whenever needed. I would recommend monitoring your resource usage and also maybe running some stress tests to see how your app performs depending on different load.

I would recommend having a look at this tutorial here on how to get started with load testing:

https://www.digitalocean.com/community/tutorials/an-introduction-to-load-testing

Regards,
Bobby

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.