Full Stack starter kit with Laravel, React with TypeScript, Inertia V2 with Server Side Rendering and with roles and permissions using Spatie Laravel Permission package.
To see every step how I created this project and deployed it on larareact.com with server side rendering check the following YouTube Tutorial
Admin User
Email: admin@example.com
Password: password
Commenter User
Email: commenter@example.com
Password: password
Regular User
Email: user@example.com
Password: password
Tip
Make sure you have installed php, composer, node.js and the following commands are available in terminal. php, node, npm, composer.
- Clone the project
- Go to the project's root directory from terminal
- Copy
.env.exampleinto.envfile (cp .env.example .env) - Open and adjust your
.envparameters - Run
composer install - Run
php artisan key:generate --ansi - Execute migrations with seed data:
php artisan migrate --seed - Run
npm install - Run
composer run devfor local development
Follow the steps above including step 8, after which
- Open terminal and execute
npm run buildto build react assets - Then start artisan server:
php artisan serve - Open another terminal and execute
php artisan inertia:start-ssrto start server side rendering server
To see every step how to setup the project on production, assign domain to it and setup supervisor to start and monitor server side sendering server check the following YouTube tutorial.