Prerequisites
Before installing CAFH Platform, ensure you have the following installed:Node.js
Version 18.x or higher
npm
Version 9.x or higher (comes with Node.js)
Check your versions:
Installation Steps
Install dependencies
The platform uses npm for package management. Install all required dependencies:This will install:
- React 19.2.3 - UI library
- TypeScript 5.8.2 - Type safety
- Express 5.2.1 - Backend server
- Vite 6.2.0 - Build tool
- React Router 7.10.1 - Routing
- Lucide React 0.561.0 - Icons
- Recharts 3.6.0 - Analytics charts
- @xyflow/react 12.10.1 - Automation flow builder
- Nodemailer 8.0.1 - Email sending
package.json.Configure environment variables
Create a Edit the
.env file in the project root:.env file with your SMTP configuration (optional for local development):.env
SMTP configuration is optional for local development. The platform will run without it, but email features won’t work.
Verify Installation
Once the server is running, open your browser tohttp://localhost:3000. You should see the CAFH Platform home page.
Admin Login
Email:
[email protected]Password: admin123Member Login
Email:
[email protected]Password: miembro123Project Structure
After installation, your project structure will look like this:Troubleshooting
Port 3000 is already in use
Port 3000 is already in use
If port 3000 is occupied, edit
vite.config.ts to change the port:vite.config.ts
Module not found errors
Module not found errors
Try deleting
node_modules and reinstalling:TypeScript errors
TypeScript errors
Run the linter to check for type errors:This runs
tsc --noEmit to check types without building.Next Steps
Environment Setup
Configure environment variables
Running Locally
Learn about development workflows
Tech Stack
Explore the technologies used
Architecture
Understand the platform architecture