ldc-bogt/README.md

81 lines
927 B
Markdown
Raw Permalink Normal View History

2022-06-15 11:46:53 +02:00
# BOGT / Tracabilité Loué
## Installation
2022-08-11 07:22:30 +00:00
2022-06-15 11:46:53 +02:00
```
composer install
cp .env.example .env
php artisan key:generate
php artisan storage:link
```
Éditez le fichier .env puis :
2022-08-11 07:22:30 +00:00
2022-06-15 11:46:53 +02:00
```
php artisan migrate
```
Front :
2022-08-11 07:22:30 +00:00
2022-06-15 11:46:53 +02:00
```
npm install && npm run prod
```
2022-08-11 07:22:30 +00:00
2022-06-15 11:46:53 +02:00
Pour créer un compte admin :
2022-08-11 07:22:30 +00:00
2022-06-15 11:46:53 +02:00
```
php artisan user:create
```
2022-08-09 16:22:02 +02:00
## Crons
2022-08-11 07:22:30 +00:00
2022-08-09 16:22:02 +02:00
Put every min in PROD :
2022-08-11 07:22:30 +00:00
2022-06-15 11:46:53 +02:00
```
php artisan schedule:run
```
## Données
2022-08-11 07:22:30 +00:00
2022-06-15 11:46:53 +02:00
Pour synchroniser les aliments :
2022-08-11 07:22:30 +00:00
2022-06-15 11:46:53 +02:00
```
php artisan cafel:food
```
2022-08-11 07:22:30 +00:00
2022-06-15 11:46:53 +02:00
Pour synchroniser les données BEA (volaille) :
2022-08-11 07:22:30 +00:00
2022-06-15 11:46:53 +02:00
```
php artisan cafel:bea_vol
```
2022-08-11 07:22:30 +00:00
2022-06-15 11:46:53 +02:00
Pour synchroniser les mises en place (oeuf) :
2022-08-11 07:22:30 +00:00
2022-06-15 11:46:53 +02:00
```
php artisan cafel:mep_egg
```
2022-08-11 07:22:30 +00:00
2022-06-15 11:46:53 +02:00
Pour synchroniser les éleveurs (oeuf) :
2022-08-11 07:22:30 +00:00
2022-06-15 11:46:53 +02:00
```
php artisan cafel:breeder_egg
```
2022-08-11 07:22:30 +00:00
2022-06-15 11:46:53 +02:00
Pour synchroniser les éleveurs (volaille) :
2022-08-11 07:22:30 +00:00
2022-06-15 11:46:53 +02:00
```
php artisan cafel:breeder_poultry
```
2022-08-11 07:22:30 +00:00
2022-06-15 11:46:53 +02:00
Pour importer les XML (oeuf) :
2022-08-11 07:22:30 +00:00
2022-06-15 11:46:53 +02:00
```
php artisan xml:egg
```
2022-08-11 07:22:30 +00:00
2022-06-15 11:46:53 +02:00
Pour importer les XML (volaille) :
2022-08-11 07:22:30 +00:00
2022-06-15 11:46:53 +02:00
```
php artisan xml:poultry
```