Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Laradev-Vue is a sample Laravel app that can be used as a skeleton for your next Laravel project.

License

NotificationsYou must be signed in to change notification settings

scify/laradev-vue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

TestsLinterLicense

Table of Contents

About Laradev-Vue

Laradev-Vue is a sample Laravel app that can be used as a skeleton for your next Laravel project.

It includes a basic setup for both the backend and frontend, with support for bothDDEV andNative (PHP, Composer, etc running locally) development environments.

Features

  1. Support for bothDDEV andNative development environments
  2. Vue/Inertia frontend with Vite for faster development
  3. Tailwind CSS with shadcn/ui components
  4. SCSS support with PostCSS
  5. TypeScript support
  6. Automated code formatting (PHP, JS/TS, SCSS)
  7. Git hooks for code quality
  8. Comprehensive test suite using Pest
  9. Role-based authentication using Spatie Permissions
  10. Dark mode support
  11. Responsive design
  12. GitHub Actions for CI/CD

Tech Stack

  • Backend:

    • Laravel 12.x
    • PHP 8.2+
    • MySQL/SQLite
    • Laravel Pint (Code Styling)
    • PHPStan (Static Analysis)
    • Pest (Testing)
  • Frontend:

    • Vue 3.x
    • InertiaJS
    • TypeScript
    • Tailwind CSS
    • shadcn/ui Components
    • Vite
    • ESLint + Prettier

Installation - Local Development

In order to start developing withLaradev-Vue, you will need to read the guide intheLOCAL-DEVELOPMENT.md file.

Changelog

Please seeCHANGELOG for more information on what has changed recently.

Contributing

To contribute to the application, follow these steps:

  1. Fork this repository.
  2. Read theCONTRIBUTING file.
  3. Create a branch:git checkout -b <branch_name>.
  4. Make your changes and commit them:git commit -m '<commit_message>'
  5. Push to the original branch:git push origin <project_name>/<location>
  6. Create the pull request

PHP code style - Laravel Pint

This application usesLaravel Pint in order to perform code-styling checks and fixes.

In order to run the styler, run :

./vendor/bin/pint --test -v# the --test will not do any changes, it will just output the changes needed./vendor/bin/pint -v# this command will actually perform the code style changes

Running tests

Backend tests

To run the tests, run the following command:

./vendor/bin/pest

To run with type coverage, run the following command:

./vendor/bin/pest --type-coverage

Note: depending nonyour environment, you may have to export the XDEBUG_MODE environment variable to enable code coverage:

XDEBUG_MODE=coverage ./vendor/bin/pest --coverage --parallel

To run against thearch presets (defined intests/Unit/ArchTest.php), run the following command:

./vendor/bin/pest --arch

Or, under DDEV:

ddevtest

To run the tests with coverage, run the following command:

XDEBUG_MODE=coverage ./vendor/bin/pest --coverage

To filter tests, use the--filter flag. For example:

./vendor/bin/pest --filter testName

Frontend tests

We use Jest for frontend tests.

To run the tests, run the following command:

npm runtest

To run the tests with coverage, run the following command:

npm run test:coverage

Code Scanning

This application usesPHPStan in order to perform code-scanning checks.

In order to run the code-scanner, run the following command:

./vendor/bin/phpstan analyse

Git Hooks

The project includes pre-commit hooks that automatically format code. They're installed automatically with:

composer install

Available Scripts

  • npm run dev - Start Vite development server
  • npm run build - Build for production
  • npm run lint - Run ESLint
  • npm run lint:fix - Fix ESLint issues
  • npm run types - Check TypeScript types
  • composer format - Format PHP code
  • composer analyse - Run static analysis

Available Scripts - DDEV

  • ddev artisan migrate - Migrate the database
  • ddev artisan db:seed - Seed the database
  • ddev artisan db:refresh - Refresh the database
  • ddev artisan db:reset - Reset the database
  • ddev artisan key:generate - Generate the application key
  • ddev artisan migrate:fresh - Refresh the database and migrate
  • ddev artisan migrate:fresh --seed - Refresh the database and seed
  • ddev artisan migrate:fresh --seed --seeder=DatabaseSeeder - Refresh the database and seed with the DatabaseSeeder
  • ddev pint - Format PHP code
  • ddev test - Run tests
  • ddev analyse - Run static analysis
  • ddev format - Format all code

Releasing a new version

After you have committed your changes, create a new git tag:

git tag -a vx.y.z -m"This is a nice tag name"

(for thex.y.z version number, follow theSemantic Versioning guidelines).

Then, push the tag:

git push origin vx.y.z

Then, in theGitHub Releases page, create a new Release *and correlate it with the tag that you just created.*

Also, don't forget to update theCHANGELOG.md file with the new version name, release date, and release notes.

Security

This project implements several security measures:

  • Secret Scanning:Gitleaks integration prevents accidental exposure of sensitive information like API keys, passwords, and tokens. SeeGITLEAKS-SECURITY.md for detailed configuration and usage.
  • Security Headers: Custom middleware adds security headers (CSP, HSTS, etc.)
  • CSRF Protection: Laravel's built-in CSRF protection
  • Role-based Access Control: Using Spatie Laravel Permission package

If you discover any security-related issues, please emailinfo[at]scify.org, instead of using the issue tracker.

License

This project is open-sourced software licensed undertheApache License, Version 2.0.

Credits

  • SciFYThis project is developed and maintained bySciFY and is based on theLaravel framework.

About

Laradev-Vue is a sample Laravel app that can be used as a skeleton for your next Laravel project.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp