Prerequisites
Before you begin, make sure you have:- Node.js 20 or higher installed (download here)
- A Supabase account (sign up free)
- Git installed on your machine
Optional: OpenAI API key for the AI Assistant feature, and Brevo API key for email/SMS campaigns. You can add these later.
Step 1: Clone the repository
Clone the Hiro CRM repository to your local machine:Step 2: Install dependencies
Navigate to the frontend directory and install the required packages:Step 3: Create a Supabase project
You’ll need a Supabase project to store your data:Sign in to Supabase
Go to supabase.com and sign in or create a free account
Create a new project
Click “New Project” and choose your organization. Give your project a name like “hiro-crm-dev”
Set a database password
Choose a strong database password and save it securely. Select a region close to you (e.g., “West EU” for Spain)
Step 4: Configure environment variables
Copy the environment template and add your Supabase credentials:.env.local in your editor and fill in the required values:
Step 5: Set up the database
Run the database migrations to create all required tables and functions:Option A: Using Supabase CLI (recommended)
If you have the Supabase CLI installed:Option B: Using Supabase Dashboard
Run migrations
Copy the content of each migration file from
supabase/migrations/ (starting with 000_MARKETING_HUB_GGP_COMPLETE_SCHEMA.sql) and run them in orderStep 6: Seed demo data (optional)
To explore Hiro CRM with realistic demo data:Option A: Basic seed (locations only)
Seed basic brand and location data via the API:Option B: Full demo dataset
For a complete demo with 5,000 customers, reservations, and campaigns:The demo dataset includes:
- 3 brands (La Tasca, El Patio, La Brisa)
- 5 locations across Madrid and Barcelona
- 5,000 customer profiles
- ~25,000 reservation records
- 12 marketing campaigns with metrics
- Configured loyalty program with 6 tiers
Step 7: Start the development server
Start the Next.js development server:Step 8: Access the application
Open your browser and navigate to http://localhost:3000. You’ll see the Hiro CRM landing page. Click “Acceder al Portal” to access the login page.What’s next?
Now that you have Hiro CRM running locally, you can:Explore the Dashboard
Check out the executive analytics dashboard with KPIs and charts
Create a Customer
Add your first customer profile and see the CRM in action
Set Up Integrations
Connect CoverManager, Revo POS, or configure email/SMS with Brevo
Deploy to Production
Deploy your instance to Vercel for production use
Troubleshooting
Port already in use
If port 3000 is already taken:Database connection errors
Verify your Supabase credentials in.env.local are correct. You can find them in your Supabase project settings > API.
Migration errors
If migrations fail, ensure you’re running them in order starting from000_MARKETING_HUB_GGP_COMPLETE_SCHEMA.sql.
Type check errors
Run a type check to identify TypeScript issues:Getting help
If you run into issues:- Check the Installation Guide for detailed setup instructions
- Open an issue on GitHub
- Review the Contributing Guide
