This project used Create React App with an Express backend, and built to be deployed to Heroku
Read the blog post: Create React App with Express in Production
You need to sign up for a Heroku account if you don't already have one, and install the Heroku toolbelt. (On a Mac with Homebrew, just run brew install heroku
).
To deploy:
- Clone this repo.
- Inside the repo directory, run
heroku create
(requires Heroku toolbelt). - Run
git push heroku master
to simultaneously deploy the frontend + backend to Heroku.
Check out the npm
branch if you're not using Yarn:
git checkout npm
And then once on that branch, the deploy command is:
git push heroku npm:master