A comprehensive full-stack web application for H-DCN (Harley-Davidson Club Nederland) providing club management, e-commerce, and member administration with mobile-responsive design.
The H-DCN Dashboard is a modern web application built with React frontend and AWS serverless backend, designed to manage all aspects of the Harley-Davidson Club Nederland operations.
- Passwordless Authentication - Passkey/WebAuthn and Google OAuth integration
- Mobile-First Responsive Design - Optimized for all devices
- Role-Based Access Control - 12 distinct user roles with granular permissions
- E-commerce Integration - Webshop with Mollie payments (iDEAL, creditcard, bank transfer)
- Member Management - Complete CRUD operations with bulk import
- Event Management - Club events and participation tracking
- PresMeet - Meeting management for club meetings (attendance, reports, payments)
- Unified Product/Variant System - Streamlined product and variant management (March 2026)
- AWS Cognito Authentication - Secure user management with Dutch language support
- Serverless Architecture - Scalable and cost-effective infrastructure
PresMeet is a meeting management feature for H-DCN club meetings. It provides:
- Attendance tracking and reporting for official meetings
- Payment management for meeting-related fees
- Administrative dashboard with meeting reports
- Configurable meeting settings per club region
The product and variant structure was unified in March 2026 to streamline webshop management:
- Products and variants now share a consistent data model
- Bulk variant creation for products with multiple options (sizes, colors)
- Stock management integrated at the variant level
- Simplified admin interface for product/variant CRUD operations
- Framework: React 18 with Chakra UI
- Authentication: AWS Cognito integration
- State Management: React Context
- Routing: React Router v6
- Forms: Formik + Yup validation
- Payments: Mollie integration (iDEAL, creditcard, bank transfer)
- PDF Generation: jsPDF + html2canvas
- API: 85 Lambda functions with API Gateway
- Database: DynamoDB for all data storage
- Authentication: Cognito User Pools
- File Storage: S3 buckets
- Configuration: Parameter Store
- Infrastructure: AWS SAM templates
- Membership Registration - Dynamic form for new members
- Webshop - Product ordering with payment processing
- Profile Management - Personal data updates
- Regional Member Administration - Read-only access to regional members
- Complete Member Administration - User and group management
- Event Management - Create and manage club events
- Product Management - Webshop inventory control
- Parameter Management - System configuration
- Cognito Administration - User pool management
| Group | Access Level |
|---|---|
| No groups | Membership registration only |
| hdcnLeden | Webshop + Profile |
| hdcnAdmins | All modules |
| hdcnRegio_* | Regional members (read-only) |
Advanced permission system via function_permissions parameter:
- Read: View-only access
- Write: View and modify access
- Wildcards:
hdcnRegio_*for all regions
- Node.js 18+
- Python 3.9+
- AWS CLI configured
- SAM CLI installed
- Docker (for local development)
cd frontend
npm install
cp .env.example .env
# Configure AWS Cognito settings in .env
npm startcd backend
sam build --use-container
sam deploy --guidedCreate .env in frontend directory:
REACT_APP_AWS_REGION=eu-west-1
REACT_APP_USER_POOL_ID=your-user-pool-id
REACT_APP_USER_POOL_WEB_CLIENT_ID=your-client-id
REACT_APP_API_BASE_URL=your-api-urlThe application features comprehensive mobile optimization:
- Responsive Tables - Horizontal scroll with sticky action columns
- Compact Filters - Collapsible dropdown filters
- Touch-Friendly UI - Minimum 44px touch targets
- Progressive Disclosure - Hide non-essential columns on mobile
- Mobile Navigation - Optimized button layouts and spacing
# Frontend
npm start # Development server
npm run build # Production build
npm test # Run tests
# Backend
sam build # Build Lambda functions
sam deploy # Deploy to AWS
sam logs -n FunctionName --tail # View logs
# Deployment
.\deploy.ps1 # Frontend deployment to S3
.\git-upload.ps1 # Git workflow automationh-dcn/
βββ frontend/ # React application
β βββ src/
β β βββ components/ # Reusable components
β β βββ modules/ # Feature modules
β β βββ pages/ # Main pages
β β βββ utils/ # Services and utilities
β βββ public/
βββ backend/ # AWS SAM application
β βββ handler/ # Lambda function handlers (85 functions)
β βββ template.yaml # SAM infrastructure template
β βββ tests/ # Backend tests
βββ documentation/ # Project documentation
The backend provides 85 REST API endpoints organized by functionality:
- Products - E-commerce product management
- Members - Club member CRUD operations
- Payments - Payment tracking and history
- Events - Event management and participation
- Memberships - Membership type management
- Carts & Orders - Shopping cart and order processing
- Parameters - System configuration
- Cognito - User pool administration
- PresMeet - Meeting management and reporting
- Stock - Product stock and variant management
cd frontend
npm testcd backend
pip install -r tests/requirements.txt
python -m pytest tests/unit -v
AWS_SAM_STACK_NAME=<stack-name> python -m pytest tests/integration -vcd frontend
.\deploy.ps1cd backend
sam deploy# Initial upload
.\git-upload.ps1 -Initial
# Regular updates
.\git-upload.ps1 -Message "Description of changes"
# Quick update
.\git-upload.ps1- CloudWatch Logs - Lambda function logging
- X-Ray Tracing - Performance monitoring
- DynamoDB Metrics - Database performance
- API Gateway Metrics - API usage statistics
- XSS Protection - Input sanitization and HTML escaping
- CORS Configuration - Proper cross-origin resource sharing
- Environment Variables - No hardcoded credentials
- IAM Roles - Least-privilege access principles
- Cognito Integration - Secure authentication and authorization
- Cognito Configuration Guide - Complete AWS Cognito setup
- Google OAuth Setup - Google Workspace integration
- Passkey Implementation - WebAuthn/Passkey authentication
- User Management Guide - User roles and permissions
- Authentication Troubleshooting - Common issues and solutions
- Secrets Management - Credential security best practices
- Security Scan Report - GitGuardian security validation
Webshop:
- Handleiding Webwinkel (leden) - Step-by-step shop guide for members
- Handleiding Webwinkel Beheer (beheerders) - Admin guide (products, orders, payments, reports, event/region shops)
Events / Evenementen:
- Handleiding Evenementen (leden) - Register, book, pay and manage delegates for an event
- Handleiding Evenementen Beheer (beheerders) - Admin guide (create events, access, claims, lock/unlock, payments, reports)
Generate shareable HTML / PDF versions of all these manuals:
# From the repo root β no npm install needed (zero dependencies)
node scripts/docs/render-manuals.mjs
# Produces the *.html files next to each *.md in docs/webshop/ and docs/events/.
# Open in a browser and choose Print -> Save as PDF for a PDF version.Screenshots are referenced via placeholders; see docs/webshop/assets/README.md and docs/events/assets/README.md for the expected file names.
- Test Environment Setup - Development environment configuration
- API Documentation - Complete API reference
Access Denied
- Check Cognito group membership
- Verify function permissions in Parameter Management
Modules Not Visible
- Check
function_permissionsconfiguration - Ensure proper group assignments
API Errors
- Verify
.envconfiguration - Check AWS credentials and region settings
Build/Deployment Issues
- Run
.\fix-build.ps1for frontend issues - Check SAM template syntax for backend issues
- Fork the repository
- Create feature branch (
git checkout -b feature/new-feature) - Commit changes (
git commit -m 'Add new feature') - Push to branch (
git push origin feature/new-feature) - Open Pull Request
This project is proprietary to H-DCN organization.
For technical support or access rights questions, contact the H-DCN administrators.
Version: 2.0.0
Last Updated: June 2026
Repository: https://github.com/PeterGeers/h-dcn