React JS base repository for any project.
Built with React JS platform using the following technologies: HTML 5, JavaScript, Redux, Router, CSS3, SASS & Compass, NPM or Yarn, Gulp v.4 and more.
You must install the environment manually: Node.JS, NPM or Yarn and Gulp CLI.
For more information visit:
- Node and NPM: https://nodejs.org/es/
- Yarn: https://yarnpkg.com/es-ES/
- Gulp: https://gulpjs.com/
Note: If you work with Windows. To execute the commands, we recommend installing Cygwin http://www.cygwin.com/
Note: I recommend installing the following IDE for PHP Programming: Visual Studio Code (https://code.visualstudio.com/) or PHPStorm (recommended) (https://www.jetbrains.com/phpstorm/).
├─ assets/ # Front-end directory
│ ├─ img/
│ ├─ scss/
│ ├─ .htaccess.dist
│ └─ .htpasswd.dist
├─ gulp/
│ ├─ task/
│ └─ config.js # Paths and configuration Gulp system.
├─ public/ # Public directory
├─ src/ # Source directory
├─ .babelrc
├─ .editorconfig
├─ .env.alpha.local.dist
├─ .env.beta.local.dist
├─ .env.development.local.dist
├─ .env.production.local.dist
├─ .eslintrc.js
├─ .gitignore
├─ .htaccess
├─ .stylelintignore
├─ .stylelintrc
├─ deploy.sh
├─ gulpfile.babel.js
├─ LICENSE
├─ package.json
└─ README.md
- Open your terminal and browse to the root location of your project.
- Run
$yarn install --dev
. - Run
$yarn start
. - End. Happy developing.
- Open your terminal and browse to the root location of your project.
- If required. Run:
$yarn install --dev
or$npm install --save-dev
then:$gulp [action]
- To work with and compile your Sass files on the fly start:
$gulp
- Gulp actions commands list:
$gulp clean
Delete all files.$gulp css
Compile SASS to CSS and validate SASS according Stylelint (https://stylelint.io/). Not concat.$gulp cssWithConcat
Concat and compile SASS to CSS and validate SASS according Stylelint (https://stylelint.io/).$gulp fontAssets
Copy fonts assets to public directory.$gulp images
Copy and minify PNG, JPEG, GIF and SVG images with imagemin.$gulp validate
Validate SCSS according Stylint (https://stylelint.io/).$gulp validateScss
Validate SCSS according Stylint (https://stylelint.io/).$gulp watch
Compile SASS to CSS and concat and minify JS files in real-time.
- Yarn actions commands list:
$yarn start
Runs the app in the development mode according .env.development.local file. Open http://localhost:3000 to view it in the browser. The page will reload if you make edits.$yarn test
Launches the test runner in the interactive watch mode.$yarn build
Builds the app according .env.production.local file to the build folder.$yarn build:alpha
Builds the app according .env.alpha.local file to the build folder.$yarn build:beta
Builds the app according .env.beta.local file to the build folder.$yarn eject
Compile for development environment.$yarn gulp:dev
Compile for development environment.$yarn gulp:prod
Compile for production environment.$yarn gulp:validate
Validate SCSS according Stylint (https://stylelint.io/).$yarn lint
Validate src/ directory according Airbnb's ESLint config (https://www.npmjs.com/package/eslint-config-airbnb).$yarn lint:fix
Fix src/ directory according Airbnb's ESLint config (https://www.npmjs.com/package/eslint-config-airbnb).
The present project uses several technologies and tools for the automation and development process. For more information and learning visit the following links.
- React: https://reactjs.org/
- Prop-types: https://github.com/facebook/prop-types
- Redux: https://redux.js.org/
- React-Router: https://github.com/ReactTraining/react-router
- React-Snap: https://github.com/stereobooster/react-snap
- Material-UI: https://material-ui.com/
- Normalize: https://github.com/necolas/normalize.css
- Git: https://git-scm.com/
- NPM: https://www.npmjs.com/
- Yarn: https://yarnpkg.com/
- Sass: https://sass-lang.com/
- Gulp: https://gulpjs.com/
- Babel: https://babeljs.io/
- EditorConfig: https://editorconfig.org/
- ESLint: https://eslint.org/
- Stylelint: https://stylelint.io/
- Airbnb's ESLint config: https://www.npmjs.com/package/eslint-config-airbnb
- Husky: https://www.npmjs.com/package/husky
- Human.txt: http://humanstxt.org/
Note: Thanks a lot of developers that to work on this projects.
- If required. It is possible that on Mac OS the Gulp tasks do not run the correct form. In this case install NodeJS, NPM and Gulp-cli in your OS and execute the tasks outside the Docker containers.
More information on the following commits. If required.
Grettings @jjpeleato.