solophp / inertia-svelte-skeleton
SoloPHP Framework Skeleton Application for Inertia.js and Svelte, ready to start coding
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^8.1
- nyholm/psr7-server: ^1.1
- solophp/framework: main-dev
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
public
directory:cd public
- Start the PHP server:
php -S localhost:8000
- Navigate to the
web
directory: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!