docs: documenter start:all et nettoyage; gitignore caches/logs [skip ci]

This commit is contained in:
4NK IA 2025-09-19 08:17:07 +00:00
parent 9eee1f1854
commit e12acf91d4
2 changed files with 24 additions and 2 deletions

10
.gitignore vendored
View File

@ -51,4 +51,12 @@ test-files/
uploads/ uploads/
cache/ cache/
coverage/ coverage/
resources.pak resources.pak
log/
frontend.log
backend.log
backend/node_modules/
backend/cache/
backend/uploads/
backend/*.pid
*.pid

View File

@ -95,10 +95,15 @@ VITE_INFOGREFFE_API_URL=https://api.infogreffe.fr
```bash ```bash
# Développement # Développement
npm run dev # Serveur de développement npm run start:all # Démarrer backend (PM2) + frontend (Vite) ensemble
npm run dev # Serveur de développement (frontend seul)
npm run build # Build de production npm run build # Build de production
npm run preview # Prévisualisation du build npm run preview # Prévisualisation du build
# Backend (PM2)
npm run back:up # Démarrer le backend via PM2
npm run back:restart # Redémarrer ou démarrer le backend via PM2
# Qualité de code # Qualité de code
npm run lint # Vérification ESLint npm run lint # Vérification ESLint
npm run format # Vérification Prettier npm run format # Vérification Prettier
@ -115,6 +120,15 @@ IMAGE_TAG=0.1.3 ./scripts/docker-build.sh # Construire avec tag explicite
IMAGE_TAG=0.1.3 ./scripts/docker-push.sh # Pousser vers git.4nkweb.com IMAGE_TAG=0.1.3 ./scripts/docker-push.sh # Pousser vers git.4nkweb.com
``` ```
### Nettoyage rapide (local)
```bash
# Purger caches/artefacts et réinstaller
rm -rf node_modules backend/node_modules dist cache log uploads backend/cache backend/uploads
mkdir -p uploads cache log backend/uploads backend/cache
npm ci && (cd backend && npm ci)
```
## 🏗️ Architecture ## 🏗️ Architecture
### Structure du projet ### Structure du projet