GithubHelp home page GithubHelp logo

redappleorigin / react-laravel Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 26.29 MB

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

PHP 32.91% Batchfile 0.05% JavaScript 58.22% ApacheConf 0.23% HTML 8.23% AppleScript 0.36%

react-laravel's Introduction

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.

react-laravel's People

Contributors

redappleorigin avatar

Stargazers

Tyler Williams avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.