/heroku-express-react

Primary LanguageJavaScriptMIT LicenseMIT

Heroku Express React

This is a simple template for a heroku deployable app with Node Express back end and React front end

Back end is located in the root of the repository. Front end is located in client/ directory.

React app was created with create-react-app

Develop

  1. Start backend: yarn dev
  2. Start frontend: cd client && yarn start
  3. Navigate to http://localhost:3000
  4. Start developing

Deploy to Heroku:

  1. Make a Heroku account and install Heroku (https://www.heroku.com/)
  2. Run heroku create
  3. Run git push heroku master
  4. Navigate to the heroku app link provided in console

Deploy changes to Heroku

  1. Commit changes to git
  2. Run git push heroku master