Skip to content

redappleorigin/react-laravel

Repository files navigation

Sample ReactJS and Laravel PHP Framework

This project currently uses:

Disclaimer

  • This is not finished
  • This is currently only for windows
  • Code is a bit very messy.

Required

  • Windows 7 or greater
  • Node 6 or greater
  • Npm 3 or greater // usually included with nodejs
  • VCRUNTIME140.dll, You'll need the x86 version

Getting Started

Run the following scripts in a console of your choice, I like cmder.

  • npm run setup:dev // Assuming you meet the above Required, this will setup everything you need. Probably...
    • attempts to create a sqlite database in the database directory
    • creates an .env file for laravel
    • installs composer dependencies
    • creates an application key for laravel in the .env file
    • runs migrations to create a user and password_resets table
    • Finally runs npm install
  • npm start // Launches a php server

In a separate console run

  • npm run client:webpack:dev:server // watches client.entry.js

In yet another console, run:

  • npm run server:webpack:dev:build:watch // watches server.entry.js

The react app is located in resources/react.

Commands

From the project root you can run:

Command Example Description
php bin\php Runs the included php executable from the bin folder
artisan bin\php artisan Runs laravel's artisan commands. See what's available here
composer bin\composer runs composer commands

I did not include node executables, so you'll need that on your dev environment.

About

Moderately complex POC of Server and Client side React, Redux, Webpack and Laravel working together

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published