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: [email protected]
Password: password
Commenter User
Email: [email protected]
Password: password
Regular User
Email: [email protected]
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.example
into.env
file (cp .env.example .env
) - Open and adjust your
.env
parameters - Run
composer install
- Run
php artisan key:generate --ansi
- Execute migrations with seed data:
php artisan migrate --seed
- Run
npm install
- Run
composer run dev
for local development
Follow the steps above including step 8, after which
- Open terminal and execute
npm run build
to build react assets - Then start artisan server:
php artisan serve
- Open another terminal and execute
php artisan inertia:start-ssr
to 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.