Coder Social home page Coder Social logo

ahmedabdulrahman / laravel-react Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moeen-basra/laravel-react

0.0 1.0 0.0 3.18 MB

Laravel 5.6 and React 16 boilerplate

Home Page: http://laravel-react.moeen.me/

License: MIT License

JavaScript 45.90% PHP 53.61% HTML 0.49%

laravel-react's Introduction

Laravel 5.6 and React 16 boilerplate

Please follow the guide.

  1. git clone
  2. update the .env file along with database connection
  3. composer install && composer update
  4. php artisan migrate
  5. php artisan db:seed
  6. npm install

Install Passport

Open a terminal window and install the passport using following command

php artisan passport:install

Update the Passport keys in .env file

Copy the keys for personal and password grants in .env file

PERSONAL_CLIENT_ID=1
PERSONAL_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
PASSWORD_CLIENT_ID=2
PASSWORD_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Set the App URL

Set the APP_URL in .env file (e.g)

APP_URL=http://localhost:8000

Set the APP Title

Set the APP_TITLE in resources/assets/js/values/index.js

APP_TITLE='Your Blog Name'

Run PHP Dev Server

Either create a local dev url and map the link in webpack.mix.js file or open an other terminal window and copy paste the following command

php artisan serve

Run Node Engine

Compile assets one time.

npm run dev

OR or if you would like to compile assets on runtime then copy paste following command in terminal

npm run watch or npm run watch-poll

for complete list of instruction follow the link below Laravel Mix

TODO:

  • Add Redux
  • Add Passport for authentication
  • User Login
  • User Register
  • Users Crud
  • Articles Crud
  • Form validation Client and Server
  • Reset Password
  • Tests
  • Upgrade to Laravel 5.6
  • Upgrade to React 16

laravel-react's People

Contributors

moeen-basra avatar rummykhan avatar itsjw avatar

Watchers

James Cloos 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.