This repo contains boilerplate code to aid in the creation of a new React app with Redux and PHP back end. Follow the below setup instructions to get started.
- Fork this repo
- Clone your forked copy of this repo
git clone https://github.com/[Your Username]/lampr-demo.git
- Change directory into the newly cloned repo
cd lampr-demo
- Install dependencies
npm install
- Use MAMP or similar program to start Apache and MySQL servers
- Set root directory of server to the
public
folder of this project- Set Apache port to
8000
- Use phpMyAdmin (or similar) to create a database
- Start dev server
npm start
- Open a browser and navigate to
localhost:3000
You should see "Welcome to React".
- Run webpack to bundle files
npm run bundle
NOTE: After bundling and placing on a web server. The
public
folder should be the web root