Skip to content
This repository has been archived by the owner on Feb 18, 2023. It is now read-only.

elkeis/swtgrn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swtgrn

Website built with React and Express.

This is a website which is using Create React App to bootstrap a React project connected to an Express backend, and deploy the whole thing to Heroku.

Read the blog post: Create React App with Express in Production

Prerequisites

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).

Deploy to Heroku

To deploy:

  1. Clone this repo.
  2. Inside the repo directory, run heroku create (requires Heroku toolbelt).
  3. Run git push heroku master to simultaneously deploy the frontend + backend to Heroku.

Using NPM

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