First, clone the repo via git:
git clone https://github.com/krlls/My-build-React.git your-project-name
And then install dependencies. ProTip: Install with yarn for faster and safer installation
$ cd your-project-name && yarn
Run these commands:
$ yarn dev
For build run this command
$ yarn build
For build docker image run
The name of the docker image will be taken from the name of your application in packaje.json
$ yarn build:docker
And run image
$ yarn run:docker
or
$ docker run -p 80:80 npm_package_name
For test run this command
$ yarn test
For lint run this command
$ yarn lint
For autocorrection, you can do
$ yarn lint-fix