feat: initial Spring Boot API - modules Auth, Articles, Tiers, Achats, Ventes, Production, Stock, Dashboard

- Architecture n-tiers : Controller → Service → Repository → Model
- Sécurité JWT complète (Spring Security 6 + JJWT 0.12)
- 6 rôles : PDG, Vente, Achat, Production, Magasinier, RH
- Entités JPA : User, Role, Article, Client, Fournisseur, PurchaseOrder, SalesOrder, DeliveryNote, ProductionOrder, BomLine, StockMovement
- Services métier : StockService, PurchaseOrderService, SalesOrderService, ProductionOrderService
- DataInitializer : création des rôles + admin par défaut au démarrage
- Docker Compose : Spring Boot + MySQL 8

PFE Ali Guennari — SUARL Rayhan
This commit is contained in:
2026-04-19 19:39:31 +01:00
parent 07b7b133fe
commit b53fcf0ab9
61 changed files with 2836 additions and 27 deletions
@@ -0,0 +1,27 @@
# ===================================
# Configuration de l'application ERP
# SUARL Rayhan — PFE Ali Guennari
# ===================================
# Serveur
server.port=8080
# Base de données MySQL
spring.datasource.url=jdbc:mysql://localhost:3306/rayhan_erp_db?createDatabaseIfNotExist=true&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Africa/Tunis
spring.datasource.username=root
spring.datasource.password=rayhan_erp_2024
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
# JPA / Hibernate
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=false
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
spring.jpa.properties.hibernate.format_sql=true
# JWT
rayhan.erp.jwtSecret=RayhanERP_SecretKey_PFE_AliGuennari_2024_TunisiePlasturgie_SUARL
rayhan.erp.jwtExpirationMs=86400000
# Logging
logging.level.com.rayhan.erp=DEBUG
logging.level.org.springframework.security=INFO