Skip to content

vietpt-1430/react-news

Repository files navigation

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='Title Your News'

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

About

Laravel React

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors