This repository contains a React front-end for the Real Time Footfall Analysis project.
- Clone this repository
cd
into the cloned directory and runyarn install
- Setup the following File Watchers in WebStorm (or your IDE of choice):
- Run
yarn start
and the front-end should automatically load athttp://localhost:3000/
- If you wish to use the bundled mock server tool:
cd
intosrc/tools
- Run
yarn install
- Set
REACT_APP_USE_MOCK_SERVER=true
in your Node environment.
As mentioned above, this project uses Prettier for code formatting and package.json
enforces code-style compliance with a pre-commit validation hook. Setting up File Watchers is the best way to ensure you're always compliant with the style guide.
Pre-commit validation also involves ESLint
checks, which should ideally be displayed live in your IDE as you code; this means there is no need for an ESLint File Watcher.
To avoid disappointment and ensure that committing the current state of your repository will succeed, run yarn validate
prior to committing. This is not a guarantee of code functionality but will maintain consistent code formatting, automatic regression testing and some basic static analysis via linters.