Backend: - TestAdminLogin_Success: verify admin login with username - TestAdminLogin_WrongPassword: verify 401 for wrong password Frontend (Marketplace): - auth.test.ts: mocked tests for login/logout (5 tests) - auth.integration.test.ts: real API tests (3 tests, skipped in CI)
26 lines
No EOL
722 B
Bash
26 lines
No EOL
722 B
Bash
# ============================================
|
|
# SaveInMed Backend - Environment Variables
|
|
# ============================================
|
|
|
|
# Application Settings
|
|
APP_NAME=saveinmed-performance-core
|
|
BACKEND_PORT=8214
|
|
|
|
# Database Configuration
|
|
DATABASE_URL=postgres://yuki:xl1zfmr6e9bb@db-60059.dc-sp-1.absamcloud.com:26868/sim_dev?sslmode=disable
|
|
|
|
# JWT Authentication
|
|
JWT_SECRET=your-secret-key-here
|
|
JWT_EXPIRES_IN=24h
|
|
|
|
# MercadoPago Payment Gateway
|
|
MERCADOPAGO_BASE_URL=https://api.mercadopago.com
|
|
MARKETPLACE_COMMISSION=2.5
|
|
|
|
# CORS Configuration (comma-separated list of allowed origins, use * for all)
|
|
CORS_ORIGINS=*
|
|
|
|
ADMIN_NAME=Administrator
|
|
ADMIN_USERNAME=admin
|
|
ADMIN_EMAIL=admin@saveinmed.com
|
|
ADMIN_PASSWORD=admin123 |