This is a simple example of how to use Laravel as a backend and SvelteKit as a frontend.
- Clone the repository
git clone --recurse-submodules git@github.com:renatomoor/sveltekit-precognition.git- Install the dependencies
cd sveltekit-precognition
composer install- Create a
.envfile
cp .env.example .env- Generate the application key
php artisan key:generate- Run the migrations
php artisan migrate- Run the development servers
composer dev- Access the frontend application
http://localhost:5173/