ovasylenko/skillcrucial-react-redux-boilerplate(opens in a new tab)
Language: JavaScript
React
- stars
- 72
- watchers
- 13
- forks
- 443
- open issues
- 19
- Last updated
- 03/15/2023
Language: JavaScript
React
$ git clone git@github.com:ovasylenko/skillcrucial-react-redux-boilerplate.git
$ yarn install
We recommend using yarn for installing packages, but you can use npm instead:
$ npm install
$ yarn run build:prod
Copy .env.example file to .env and make the necessary changes there
Run project in Dev mode
$ yarn run dev
You will write your app in this folder. You will spend most of your time in here.
This folder contains all your components
This directory contains compiled project files
Project environment configs. Webpack uses proper config depending on defined application environment.
By default webpack.development.config.js is used unless you build the application with --config webpack.production.frontend.config.js variable.
yarn install
Installs the dependencies.
yarn run dev
Starts the development server running on http://localhost:8080 using the webpack.development.config.js with Hot Module Replacement (HMR) (Changes in the application code will be hot-reloaded)
yarn run dev:server
Starts the development server and makes your application accessible at http://localhost:8080.
yarn run clean
Removes a directory "dist" from a project
yarn build:prod
Prepares your app for deployment to production environment (using the webpack.production.frontend.config.js) (does not run tests). Optimizes and minifies all files, piping them to the dist folder.
yarn run testTests your application modern JavaScript Testing Framework - Jest with the unit tests specified in the **/__tests__/*.spec.js files
throughout the application.
yarn run test:watch
Watches changes to your application and re-runs tests whenever a file changes.
yarn run coverage
Generates test coverage.
It’s also possible to leave out the run in this command, each script can be executed with its name, e.g: yarn test:watch yarn test:coverage
yarn run lint
Will analyse your code for potential errors. Will check both: ./client/**/**.js and ./server/**/**.js files.
Code linting is a type of static analysis that is frequently used to find problematic patterns or code that doesn’t adhere to certain style guidelines.
yarn run lint:server
Will analyse only server/**/**.js files
Nginx web server working on 443, 80 ports on localhost
docker-compose -f .\docker\PROD.docker-compose.yml up (Options: --build for build, -d to detach )
docker-compose -f .\docker\PROD.docker-compose.yml down (To stop contaiters)
docker-compose -f .\docker\DEV.docker-compose.yml up (Options: --build for build, -d to detach )
docker-compose -f .\docker\DEV.docker-compose.yml down (To stop contaiters)