73 lines
1.6 KiB
Markdown
73 lines
1.6 KiB
Markdown
# 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
|
|
php artisan schedule:run
|
|
```
|
|
|
|
# Unit tests
|
|
Create new `.env.testing` with a new empty database `le-gaulois-testing` and just run this command :
|
|
```php
|
|
php artisan test
|
|
```
|
|
To see more details, please read the documentation of [uwil/unit-tests-laravel](https://lab.s-web.fr/ldc-web/projets/unit-tests-laravel/-/blob/main/README.md?ref_type=heads#documentation)
|
|
|
|
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
|