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 [email protected]:renatomoor/sveltekit-precognition.git
- Install the dependencies
cd sveltekit-precognition
composer install
- Create a
.env
file
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/