Clone this repo using git clone --depth=1 https://github.com/DmitriySmolin/react-laravel-crud.git <YOUR_PROJECT_NAME>
- Move to the appropriate directory:
cd <YOUR_PROJECT_NAME>
. - Run
npm run install
in order to install dependencies and clean the git repo.
At this point you can runnpm start
to see the example app athttp://localhost:3000
. - Run
npm run clean
to delete the example app.
- Move to the appropriate directory:
cd <YOUR_PROJECT_NAME>
. - Run
composer install
in order to install dependencies and clean the git repo. - Set up a database connection in a file .env
- Run a database migration
php artisan migrate:fresh --sed
At this point you can runphp artisan serve
to see the example app athttp://localhost:8000
.