Skip to content

tgrrr/react-hooks-starter

Repository files navigation

https://hub.docker.com/repository/docker/tgrrr/cra-docker

Getting Started

install yarn

yarn run start
yarn run setup
  • How to build
docker build . -t tgrrr/cra-docker

How to run with Docker

  • Pull create-react-app from docker
docker pull tgrrr/cra-docker
docker run -p 8080:80 tgrrr/cra-docker

Note: including -p 8080:80 lets us use localhost:8080, rather than assigning a random port

How to run with yarn

yarn start

Getting started

Install

git clone https://github.com/tgrrr/react-hooks-starter
cd react-hooks-starter
yarn

Development:

yarn start or yarn watch

Runs the app in the development mode at http://localhost:3000

Tests

  • yarn test - tests with Cypress
  • yarn run cypress:open - Opens the interactive cypress tester

See example recipes

yarn run cypress:run

Run cypress tests in terminal

Deploy TODO:

Reference

And a few added extras:

TODO:

Data and State

Getting around

Styles

Tests

Debugging

Useful