I got to build a Django application recently that has a database and performs some floating-point operations( biopython, alpha-shapes and similar algorithms on crystallographic data from the database) upon request from the React.js frontend.
I was wondering what would be the best way to deploy something like this long term and how the two codebases would communicate with each other ( runs well on localhost as of now ). I've come across a few suggestions like digital ocean for django and firebase for the frontend, and heroku of course.
I have never, however, hosted a website that would go into production eventually, let alone two, and am a little at a loss as
- to how the two codebases would communicate with each other,
- how to preserve all the packages installed in django's virtual environment in deployment,
- how to transfer online the database to which the calls are made.
I would appreciate any pointer to resources to read up on or an architecture suggestion very much. Thanks a ton!