-
-
Notifications
You must be signed in to change notification settings - Fork 50
Advanced Features
Akram El Assas edited this page Jul 5, 2025
·
3 revisions
wexCommerce prioritizes security across all layers of the platform:
- Authentication: The backend uses JWT (JSON Web Tokens) for secure and stateless authentication. Tokens are signed with a secret and validated on each request to protect user sessions.
- Refresh Tokens: Long-lived refresh tokens are securely issued and rotated to maintain user sessions without exposing credentials.
-
Secure Headers: Security-related HTTP headers are enforced using the
helmetmiddleware to protect against common vulnerabilities such as clickjacking and MIME sniffing. - CORS Policies: Configured to allow only trusted domains to interact with the backend.
- Rate Limiting: Protects against brute-force attacks and abusive traffic patterns.
- HTTPS in Production: All production traffic is served over HTTPS to ensure encrypted communication.
- Secure Payments: Integrated with Stripe and PayPal using tokenized and encrypted transactions.
Logging and debugging are vital for observability and diagnostics:
- Backend Logging: Uses Winston, a flexible and extensible logging library that supports multiple transports (console, file, remote).
-
MongoDB Debug Mode: Can be enabled in
backend/.envto trace database operations:
WC_DB_DEBUG=trueYou can find more details about logging here.
wexCommerce supports error monitoring through Sentry (https://sentry.io), which captures runtime exceptions and performance metrics. This is useful for diagnosing backend issues in production or staging environments. You can find more details here.
wexCommerce supports multiple deployment strategies:
- Docker Support: Includes Docker and Docker Compose for development and production setups.
- VPS Hosting: The app can also be deployed manually on virtual private servers (self-hosted).
- Static File Delivery: Uses Express to serve frontend static assets.
- Environment Configuration:
- Google Analytics: The frontend includes optional integration with Google Analytics. Configured via:
NEXT_PUBLIC_WC_GOOGLE_ANALYTICS_ENABLED=false
NEXT_PUBLIC_WC_GOOGLE_ANALYTICS_ID=G-XXXXXXXXXX- Analytics support:
- Page view tracking in SPA mode
- Environment-aware logic (disabled in development)
- GDPR-friendly implementation
Configuration is located in frontend/.env.
Copyright © Akram El Assas. All rights reserved.
- Overview
- Software Architecture
- Install Guide (Self-hosted)
- Install Guide (Docker)
- Social Login Setup Guide
- Free SSL Setup Guide
- Setup Sentry
- Payment Gateways
- Setup Stripe
- Run from Source
- Run from Source (Docker)
- Fork, Customize, and Sync
- Demo Database
- Change Language and Currency
- Add New Language
- Testing
- Logs
- FAQ
- Release Notes
- Contribution Guide
- Code of Conduct