solophp/inertia-svelte-skeleton
SoloPHP Framework Skeleton Application for Inertia.js and Svelte, ready to start coding
1
| Install | |
|---|---|
composer require solophp/inertia-svelte-skeleton |
|
| Latest Version: | v1.1.1 |
| PHP: | ^8.1 |
| License: | MIT |
| Last Updated: | Oct 20, 2024 |
| Links: | GitHub · Packagist |
Maintainer: Vitaliy Olos
Inertia-Svelte-Skeleton
SoloPHP Framework Skeleton Application for Inertia.js and Svelte, ready to start coding.
Getting Started
Follow these steps to set up and run the application:
- Install all Composer packages:
composer install - Navigate to the
publicdirectory:cd public - Start the PHP server:
php -S localhost:8000 - Navigate to the
webdirectory:cd web - Install all npm packages:
npm install - Run the development server:
npm run dev
Building for Production
To create a production build, run:
npm run build
Database Connection Configuration
To set up your database connection, you need to configure settings for both local and remote environments.
Fill in the required data for config/settings.local.php (for localhost) and config/settings.php (for remote host).
Database Migrations
Use following command to view the list of all available commands.
php cli help
Important Notes
- For the application to work properly, both the client server and the backend server must be running simultaneously.
- Styles are managed using SCSS syntax.
- The SCSS preprocessor does not require additional configuration.
Feel free to modify it according to your needs!