Overview
The react-webpack-php-starter is a boilerplate React application that utilizes webpack for bundling the JavaScript bundle file and PHP for the back-end API. It is specifically designed to use Apache as the server instead of a node server like Express. This setup is useful for projects that require PHP for user authentication.
Features
- Bundling and minification using webpack
- ECMAScript 2015 (ES6) syntax via Babel
- Linting
- Separate builds for development and production
- Bootstrap styles
- SVG icons
- PHP index file and back-end API
- Automatic browser reloading using Browsersync
Installation
- Clone or download the react-webpack-php-starter repository.
- Run
npm installto install all the required node modules. - Start development server:
npm run dev - Build for production:
npm run build
Summary
The react-webpack-php-starter is a boilerplate React application that provides a convenient setup for projects using PHP for user authentication. It utilizes webpack for bundling and minification of JavaScript files, while PHP is used for the back-end API. With features like ECMAScript 2015 syntax, linting, separate builds for development and production, Bootstrap styles, SVG icons, and automatic browser reloading, this boilerplate is a great starting point for React projects involving PHP.