To make it run locally you need to run npm i from the root folder.
If you are using this as a starting point, then cd client and npm i again.
If you already have an app built, just rename your React app project folder "client" and replace the client folder with it. Import/use your express routes in index.js.
To deploy to Heroku, all of these commands must be run in a terminal from the root folder of your project:
heroku login
git init Only run this one if you have not already initialized the git repository. If you already have your project hooked up to a GitHub repo do not run this one
git add .
git commit -m “initial commit”
heroku create
this gives two urls, use the second one for the next command
git remote add heroku (url goes here) IGNORE FATAL ERROR MESSAGE
git push heroku master
heroku apps:rename (new name goes here)
Heroku gives you a random app name and you probably don't want to build a brand called 'Mysterious Meadow' or something so change the app name using this command
heroku open
Enter your author name and license info into the README
Be sure to set your environment variables on Heroku, save the mongo connection string to the key MONGODB_URI