- PHP 7.1
- MySQL 5.7 with JSON support or PostgreSQL
For Mariadb you can use this laravel-mariadb package.
git clone https://github.com/jandaryl/scims-cadiz-deped.git- Set database and environment variables from .env.example
- Set Web write permission if needed to
bootstrap/cacheandstoragefolders. - Launch follow commands :
composer install
php artisan key:generate
php artisan storage:link
php artisan migrate [--seed]# Running this on development environment will throw error so run below command only on production
composer install --no-dev --optimize-autoloader
php artisan key:generate
php artisan storage:link
php artisan migrate --forcephp artisan scout:import "App\Models\Post"Laravel Scout takes care of updating posts index on Create, Update and Delete (CUD) operations.
- Install dependencies with
yarn - Launch
yarn devfor compiling assets and start dev-server with HMR enabled (preferred way for fast admin building)
N1 : Use DEV_SERVER_PORT variable to configure local port of Webpack Dev Server, N2 : Use DEV_SERVER_URL to configure HTTP access to Webpack Dev Server from your host, especially useful if you work on homestead/docker), N3 : Use
yarn watchif you prefer old school watcher, N4 : If assets modified, don't forget to launchyarn prodbefore deploy on production environment.
Laravel Mix still stay awesome for newcomers thanks to Jeffrey Way's laravel-like webpack fluent API, but, even if Laravel Mix can be easily overridden, for this project i preferred use my custom framework-free webpack setup in order to have total control of assets workflow.
For instance, with this custom setup HMR work natively with configurable port (essential for easy vue admin development) and productions assets are bundled into specific "dist" directory.
PHP-CS-Fixer & ESLint are used for strong style guidelines for both server and client side code.
PHP is pre-configured for official Laravel styling, just launch ./vendor/bin/php-cs-fixer fix for global project auto-formatting.
JS use Prettier Standard Style & eslint-loader is used within webpack for dynamic code styling recommendations. Moreover, Official ESLint plugin for Vue.js is included for heavy consistent code through all components vue files.
This project is open-sourced software licensed under the MIT license.