solophp / inertia-svelte-skeleton
SoloPHP Framework Skeleton Application for Inertia.js and Svelte, ready to start coding
Package info
github.com/SoloPHP/Inertia-Svelte-Skeleton
Type:project
pkg:composer/solophp/inertia-svelte-skeleton
Requires
- php: ^8.1
- nyholm/psr7-server: ^1.1
- solophp/framework: main-dev
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
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!