1
5 Comments

What’s your go to backend for React apps?

Hi IndieHackers,

My go to backend for React apps is a light weight ExpressJS app deployed as Google Cloud functions. I use the cloud data store as my database for the sake of convenience. Just wondering what your go to backend is. Do you use anything to quickly bootstrap your backend as building a backend for React apps is mostly a repetitive task of creating APIs for storing data, retrieving data, updating and deleting data. Please share your thoughts. Hoping to start a thread around this topic.

on March 28, 2022
  1. 2

    I use Django (with DRF), React and GCP hosting

    1. 1

      do you end up writing same set of API handlers each time you start a new project or do you have a base django template which you use for bootstrapping? Also for deploying to GCP, how do you do it?

      1. 2

        I have a base of sort. Such as using DRF with tools like Django-Rest-API-Key for API key management. My template also has things like Celery and Celery beat for periodic tasks and user profiles - then of course the rest of the app would sort of be customized, but this saves hours.

        We have automated testing - but then deployment is pretty starightforward, we don't even need to deploy continuously.

        Just have a VM on GCP - link to github, drop the project in and add the env variables and run server using gunicorn and nginx. Future stuff just git pull and we are good.

        For frontend - I have a base project that then connects React to Django with Redux

        1. 1

          Thats a neat setup. Thanks for sharing.