This is a guide for quickly setting up a single repository (monorepo) that has a Flask backend and a React front end deployed onto Heroku.
This will set up:
- A simple Flask boiler plate code for a basic API
- A React starter layout based on create-react-app
- Deploying the web client and API to two separate Heroku applications
- Connecting the web client to the API to pull data from the API
- Click on the "Use this template" option and follow the on screen instructions. This will set you up with a clean repository under your own account.
- Clone your new repo onto your local machine
- Run
./create_remote_apps -c [your-new-web-app-client-name] -a [your-new-api-name]
Heroku CLI installed locally
Learn more about Github templates here
This work is based on inspiration from this article
For more control over automated deploy options, check out this cool repo