A fun talking cow generator with Create-React-App and Express.
This repo is an example of how to connect an Express backend with React, and subsequently deploying to Heroku.
See the tutorial: How to deploy a create-react-app with an Express backend to Heroku
See the deployed site: Custom Cowsay
This is ready for deployment, assuming you have an account with Heroku and have installed the Heroku CLI tools.
Note: This repo uses NPM. For yarn, you will have to change the command in package.json to "heroku-postbuild": "cd client && yarn && yarn build"
- Clone this repo.
- In the root directory of the repo, run
heroku create
. - Run
git push heroku master
which will build the frontend and deploy it and the backend to Heroku.