solophp/inertia-svelte-skeleton

SoloPHP Framework Skeleton Application for Inertia.js and Svelte, ready to start coding

v1.1.0 2024-09-12 12:49 UTC

This package is auto-updated.

Last update: 2024-09-12 12:56:34 UTC


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:

  1. Install all Composer packages:
    composer install
  2. Navigate to the public directory:
    cd public
  3. Start the PHP server:
    php -S localhost:8000
  4. Navigate to the web directory:
    cd web
  5. Install all npm packages:
    npm install
  6. 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!