No description
|
|
||
|---|---|---|
| .gitlab/issue_templates | ||
| .vscode | ||
| app | ||
| bootstrap | ||
| config | ||
| database | ||
| public | ||
| resources | ||
| routes | ||
| storage | ||
| tests | ||
| .browserslistrc | ||
| .dockerignore | ||
| .editorconfig | ||
| .env.example | ||
| .eslintrc.json | ||
| .gitattributes | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| .stylelintrc.json | ||
| artisan | ||
| composer.json | ||
| composer.lock | ||
| Dockerfile | ||
| jsconfig.json | ||
| k8s-queues.sh | ||
| manifest.yaml | ||
| package-lock.json | ||
| package.json | ||
| phpcs.xml | ||
| phpstan.neon | ||
| phpunit.xml | ||
| production-resources.yaml | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.ts | ||
Le Gaulois
Optimiser Images
PNG
apt install imagick convert -colors 256 -depth 8 +dither bg-footer-ori.png bg-footer-test.png https://compresspng.com/
Autre
apt install trimage
Copy paste from the admin secure readme.md
Put every min in PROD :
php artisan schedule:run
Unit tests
Create new .env.testing with a new empty database le-gaulois-testing and just run this command :
php artisan test
To see more details, please read the documentation of uwil/unit-tests-laravel
Legend : ✅ test added & operational, ⚠️ test added & operational but modified, ❌ no test (because no CRUD or specific model)
Models list :
✅ ActivityLog
⚠️ Approach (label/demarche)
❌ BlockList
✅ BrandAdvantage
❌ Breeder
✅ Claim
✅ ConsumptionMoment
❌ Customer
❌ DeliveryAddress
✅ DemarcheSlide
❌ DepartaimantsCollection
✅ Discount
❌ GeneralSetting
✅ HistoricalMilestone
❌ IncoNutritionalValue
✅ KeyNumber
✅ MainSlide
✅ Meat
⚠️ MenuNodeData
❌ Message
⚠️ News
✅ NewsBreeding
✅ NewsCategory
⚠️ NewsClub (News/Survey)
✅ NewsCorporate
❌ Notification
✅ Offer
❌ Order
❌ OrderSellItem
✅ Product
✅ ProductType
✅ Profession
✅ Range
✅ Recipe
✅ SellItem
✅ StaticPage
✅ Submeat
✅ Subrange
✅ SurveysAnswer
✅ Testimonial
❌ User
✅ Video
Meilisearch
When deploying, if there any modification to a concerned Model, you may refresh Meilisearch cache. Concerned models are :
- News
- NewsBreeding
- Product
- Recipe
php artisan scout:flush "\App\Models\News"
php artisan scout:import "\App\Models\News"
php artisan scout:flush "\App\Models\NewsBreeding"
php artisan scout:import "\App\Models\NewsBreeding"
php artisan scout:flush "\App\Models\Product"
php artisan scout:import "\App\Models\Product"
php artisan scout:flush "\App\Models\Recipe"
php artisan scout:import "\App\Models\Recipe"