Développement local et configuration
Brouillon : cette page n'a pas encore été relue et peut être incomplète ou inexacte.
docker-compose up # ou : npm run start:allnpm run migration:runnpm testnpm run typecheckUne collection Postman est fournie dans le dépôt.
Variables
Section intitulée « Variables »| Groupe | Variables |
|---|---|
| Services | NODE_ENV, PORT, HOST, SHOPS_SERVICE_HOST, SHOPS_SERVICE_PORT, USERS_SERVICE_HOST, USERS_SERVICE_PORT |
| MongoDB | MONGODB_URI, MONGO_INITDB_ROOT_USERNAME, MONGO_INITDB_ROOT_PASSWORD |
| PostgreSQL | POSTGRES_HOST, POSTGRES_PORT, POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB |
| Authentification | JWT_SECRET, JWT_EXPIRES_IN, INTERNAL_TRANSPORT_SECRET (entre services) |
| Paiement | KKIAPAY_WEBHOOK_SECRET |
SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASS, SMTP_FROM, RESET_PASSWORD_URL |
|
| Stockage S3 | S3_ENDPOINT, S3_REGION, S3_BUCKET, S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY, S3_FORCE_PATH_STYLE |
| Divers | DEFAULT_SHIPPING_FEE_FCFA, BODY_JSON_LIMIT |
Les secrets sont fournis au cluster par External Secrets et PostgreSQL managé ; voir les pages de déploiement du dépôt.