| Install | |
|---|---|
composer require maskulabs/inertia-app |
|
| PHP: | ^8.5 |
Web application based on Yii 3 and Inertia.js.
This repository contains an application built on top of the
yiisoft/app template.
It includes project-specific modifications and configuration for a web application using:
Create a project and install dependencies:
composer create-project maskulabs/inertia-app myproject --stability=dev
cd myproject
npm install
[!NOTE] Ensure that Composer is executed with the same PHP version that will be used to run the application.
To run the app:
composer serve
The application should then be available at the URL printed in the console, usually:
http://localhost:8080
[!WARNING] Docker Compose version 2.24 or newer is required.
Clone the repository and install dependencies:
make composer update
Start the development environment:
make up
Stop it:
make down
The application will be available at:
http://localhost
To see all available commands:
make help
make build
make up
make down
make stop
make clear
make shell
make yii <command>
make composer <command>
make rector
make cs-fix
make npm <command>
make test
make test-coverage
make codecept <command>
make psalm
make composer-dependency-analyser
make prod-build
make prod-push
make prod-deploy
assets/ Asset bundle source files.
config/ Configuration files.
docker/ Docker configuration.
frontend/ Frontend source files.
public/ Publicly accessible files.
runtime/ Runtime-generated files.
src/ Application source code.
tests/ Test suite.
vendor/ Composer dependencies.
Makefile Development and deployment commands.
yii Console application entry point.
The project uses Codeception and PHPUnit-based tooling.
For local execution:
./vendor/bin/codecept build
APP_ENV=test ./yii serve > ./runtime/yii.log 2>&1 &
./vendor/bin/codecept run
Using Docker:
make codecept build
make test
Static analysis is available via Psalm:
./vendor/bin/psalm
Or with Docker:
make psalm
This project is based on the
yiisoft/app application template by Yii Software.
This repository is based on software originally distributed under the BSD License.
See LICENSE.md for the full license text and terms applicable to the original code.
Unless stated otherwise, modifications contained in this repository are distributed under the same license.