- yarn v1.22.5
- node v10.15.3
In the root directory of the app, run this command:
$ yarn install
To run app on production mode, run the command bellow to build the production app:
$ yarn build
And this command to run application:
$ yarn start
This command will build the css library, run react in production mode and serve in localhost on the port 5000.
Or you can access an instance of this app clicking here!
To run tests run the following commands:
$ yarn test
for test in development
and
$ yarn test:coverage
for run test with coverage. PS: this test generate a directory named coverage
on the root of the project. You can check a more detailed status of the code coverage on coverave/lcov-report/index.html
.
It contains code architecture commonly used by the community, with some modifications:
src/assets
: contains all the static files.src/common
: contains the common components used in the app.src/contexts
: contains the contexts and hooks of the applicationsrc/pages
: contains the app pages. Note that local components where created inside each page necessities.src/services
: contains the services used on the app.src/utils
: contains utils shared in the app.
This project utilizes AirBnb StyleGuide with some modifications in the rules:
- no-console: "warn"
- react/jsx-props-no-spreading: "off"
- no-alert: "off"
This app is mobile first layout:
You can search for players and drag them to the position:
It brings to you some metrics: