Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1.11 KB

README-react-starter.md

File metadata and controls

29 lines (23 loc) · 1.11 KB

PHP React Starter

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.

Setup Instructions

  1. Fork this repo
  2. Clone your forked copy of this repo
    • git clone https://github.com/[Your Username]/lampr-demo.git
  3. Change directory into the newly cloned repo
    • cd lampr-demo
  4. Install dependencies
    • npm install
  5. 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
  6. Start dev server
    • npm start
  7. Open a browser and navigate to localhost:3000 You should see "Welcome to React".

Bundle For Deployment

  1. 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