Laravel 6 and React 16.12 boilerplate
There are two different ways to run this demo
Please follow the guide.
Prerequisite
Option 1
git clonecreate a .env file copy content from .env.example and update the valuescomposer install && composer updatephp artisan cron:refresh-databasenpm install && npm run devphp artisan key:genphp artisan serve
Option 2
Prerequisite
Make sure you have docker and docker-compose installed on you machine.
git clonecreate a .env file copy content from .env.docker and do not make any change
run following command in terminal / power shell
docker-compose up -d
when docker will finish building the containers, access the "laravel-react-app" container using following command
docker exec -it laravel-react-app sh
now you will be inside container
run following commands
composer install && composer updatephp artisan cron:refresh-databasephp artisan key:gennpm install && npm run dev
open browser and check the following address
http://localhost:8100
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 6
- Upgrade to React 16.12
- docker