Quick Start Guide
Get CAFH Platform up and running on your local machine in just a few minutes.Prerequisites
Before you begin, ensure you have:- Node.js (v16 or higher) installed
- npm or yarn package manager
- A modern web browser (Chrome, Firefox, or Safari)
- (Optional) Gemini API key for AI-powered features
The Gemini API key is optional. The platform works without it, but some AI features will be unavailable.
Installation Steps
Install Dependencies
Navigate to your project directory and install all required packages:This will install:
- React 18 and React Router
- TypeScript and type definitions
- Tailwind CSS for styling
- Lucide React for icons
- All other dependencies
Configure Environment (Optional)
If you want to use AI features, create a
.env.local file in the root directory:.env.local
Start Development Server
Run the development server:The application will start on
http://localhost:5173 (or another port if 5173 is occupied).First Login
The platform comes with pre-configured demo accounts for testing:- Admin Account
- Member Account
Use these credentials to access the full admin panel:After logging in, you’ll be redirected to
/admin with access to:- Dashboard with analytics
- CRM & Contact management
- Email campaigns and automations
- CMS page builder
- Media library
- Settings and configuration
Exploring the Platform
Now that you’re logged in, here’s what to explore:As an Administrator
Create a Page
Go to CMS & Contenidos → Click Nueva Página → Use the visual editor to build custom pages
Import Contacts
Go to CRM & Contactos → Importar CSV → Upload a contact list to test email campaigns
Build an Automation
Go to Automatizaciones → Nueva Automatización → Create a welcome email workflow
Schedule an Event
Go to Calendario → Nuevo Evento → Create a virtual or in-person activity
As a Member
Browse Content
Click Recursos in the top menu to explore the library filtered by your interests
Join an Event
Check Actividades to see upcoming events and join virtual meetings
Understanding the File Structure
The platform is organized as follows:All data is stored in
localStorage under keys prefixed with cafh_. You can inspect this in your browser’s DevTools → Application → Local Storage.Key Configuration Files
Storage System (storage.ts:104-300)
The platform initializes with demo data on first load:Routing (App.tsx:68-116)
Routes are protected based on user role:Testing Email Features
To test email campaigns:- Go to CRM & Contactos → Campañas
- Click Nueva Campaña
- Design your email with the rich text editor
- Click Enviar Prueba to send a test email to yourself
- Click Lanzar Campaña to queue emails to your contact list
localStorage under cafh_email_logs_v1 for UI display.
Next Steps
Now that you have CAFH Platform running:Learn About Roles
Understand SUPER_ADMIN, ADMIN, EDITOR, MEMBER, and GUEST roles
Explore Multi-Tenancy
See how the platform supports multiple organizations
Understand Data Model
Deep dive into entities, relationships, and storage
Architecture Overview
Learn how all the pieces fit together
Troubleshooting
Port Already in Use
If port 5173 is occupied, Vite will automatically use the next available port. Check your terminal output for the actual URL.Data Not Persisting
The platform useslocalStorage. If you’re in incognito/private mode, data won’t persist between sessions. Use a normal browser window.
Cannot Log In
Ensure you’re using the exact credentials:- Admin:
[email protected]/admin123 - Member:
[email protected]/miembro123
Missing Features
Some features require optional backend services:- Email sending: Requires
/api/email/queueendpoint - Mailrelay sync: Requires Mailrelay API configuration
- File uploads: Currently uses mock URLs
For questions or issues, review the source code in
storage.ts and App.tsx to understand the implementation details.