-
Make sure you have
node
andnpm
installed, if not refer to below. -
Alternatively, use yarn for faster dependency installation and more stable dependency management. You can use
yarn
in the place ofnpm
.$ yarn install
instead of
$ npm install
- Instructions for installation: https://yarnpkg.com/lang/en/docs/install/
-
Clone the repository.
- Using SSH (recommended):
$ git clone git@github.com:MisaOgura/react-static-app-boilerplate.git
- Using HTTPS:
$ git clone https://github.com/MisaOgura/react-static-app-boilerplate.git
-
Move into the cloned directory.
$ cd react-static-app-boilerplate
-
Install dependencies.
$ npm/yarn install
-
Run the app locally in a development mode.
$ npm/yarn start
This should automatically open up a window in a browser. If not, visit
http://localhost:8080/
: you should see a hello world
message.
- Use the repo as a starting point of your app!
The project uses Jest as a test runner. It comes with useful features like parallel testing, intelligent test watching and coverage report.
-
Install dependencies, if you haven't done yet.
-
Run all the tests once.
$ npm/yarn test
- Also runs
standard
(JavaScript Standard Style) at the end to highlight any linting errors.
- Also runs
-
Run tests in a watch mode.
$ npm/yarn test:watch
Happy TDD!
Please feel free to raise PRs or open issues to help improve the boilerplate.
Misa Ogura