Skip to content

Instantly share code, notes, and snippets.

@chrisrzhou
Created October 17, 2017 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisrzhou/2dbd85035b1f16b01f9a80d5b363c442 to your computer and use it in GitHub Desktop.
Save chrisrzhou/2dbd85035b1f16b01f9a80d5b363c442 to your computer and use it in GitHub Desktop.
create-react-app testapp
cd testapp

// dev flow
yarn start

// build flow
yarn build
cd build

// you need to serve your files
npm install -g http-server
http-server

// open in http://127.0.0.1:8080 or whatever it says its serving it on

If you are serving this on Amazon EC2 or a webserver, you probably have to set up more stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment