ColdFollow is a comprehensive social media marketing platform designed for cold outreach and automated engagement. Built with modern web technologies, it provides powerful tools for email marketing, SMS campaigns, AI-powered phone calls, and social media management across multiple platforms.
- Email Marketing: Automated email campaigns with personalization
- SMS Marketing: Bulk SMS campaigns with scheduling and tracking
- AI Phone Calls: Automated phone outreach using AI voice technology
- Social Media Outreach: Direct messaging across platforms
- Multi-Platform Posting: Schedule and publish to multiple social networks
- Content Calendar: Visual planning and scheduling interface
- Analytics Dashboard: Track engagement, reach, and conversion metrics
- Automated Responses: AI-powered social media interactions
- Content Generation: AI-assisted content creation for posts and campaigns
- Lead Scoring: Intelligent prospect qualification and prioritization
- Conversation AI: Automated responses and engagement
- Performance Optimization: AI-driven campaign optimization
- Campaign Performance: Detailed metrics for all outreach channels
- ROI Tracking: Revenue attribution and conversion tracking
- A/B Testing: Split testing for campaigns and content
- Custom Reports: Exportable reports and dashboards
This repository is configured to automatically deploy to the production server when changes are pushed to the master or main branch.
-
Generate an SSH key pair:
ssh-keygen -t ed25519 -C "github-actions-deploy"This will create a private key (
id_ed25519) and a public key (id_ed25519.pub). -
Add the public key to your server:
# Copy the public key cat ~/.ssh/id_ed25519.pub # Then on your server, add it to authorized_keys ssh [email protected] "mkdir -p ~/.ssh && chmod 700 ~/.ssh" ssh [email protected] "echo 'your-public-key-here' >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"
-
Add the required secrets to GitHub:
- Go to your GitHub repository
- Click on "Settings" > "Secrets and variables" > "Actions"
- Add the following secrets:
a. SSH Private Key:
- Click "New repository secret"
- Name:
SSH_PRIVATE_KEY - Value: Copy the entire content of your private key file (
~/.ssh/id_ed25519) - Click "Add secret"
b. Environment Variables:
- Click "New repository secret"
- Name:
ENV_FILE_CONTENT - Value: Copy the entire content of your .env file
- Click "Add secret"
c. Supabase Configuration:
-
Click "New repository secret"
-
Name:
SUPABASE_URL -
Value: Your Supabase project URL (e.g., https://your-project-ref.supabase.co)
-
Click "Add secret"
-
Click "New repository secret"
-
Name:
SUPABASE_KEY -
Value: Your Supabase service role API key
-
Click "Add secret"
-
Click "New repository secret"
-
Name:
SUPABASE_DB_PASSWORD -
Value: Your Supabase database password
-
Click "Add secret"
-
Click "New repository secret"
-
Name:
SUPABASE_ACCESS_TOKEN -
Value: Your Supabase access token (from https://supabase.com/dashboard/account/tokens)
-
Click "Add secret"
d. Server Known Hosts (as a fallback):
- Run this command locally to get the server's SSH key fingerprint (using the correct port):
ssh-keyscan -p 2048 104.36.23.197
- Click "New repository secret"
- Name:
SERVER_KNOWN_HOSTS - Value: Paste the output from the ssh-keyscan command
- Click "Add secret"
-
Important Note About SSH Configuration:
- GitHub Actions doesn't have access to your local
~/.ssh/configfile - All scripts now use the direct IP address, port, and user:
- IP:
104.36.23.197 - Port:
2048 - User:
ubuntu
- IP:
- The workflow creates an SSH config file with these settings
- If you need to use different connection details, update them in:
.github/workflows/deploy.ymlbin/deploy.shbin/check-deployment.shbin/manual-deploy.sh
- GitHub Actions doesn't have access to your local
-
Verify GitHub Actions is enabled:
- Go to your repository on GitHub
- Click on the "Actions" tab
- Make sure Actions are enabled for the repository
-
Test the workflow:
- Make a small change to your repository
- Commit and push to master/main
- Go to the "Actions" tab in your GitHub repository to monitor the workflow
- The workflow will run the
bin/test-github-actions.shscript on the server to verify deployment - Check for a new file named
github-actions-test-*.txton your server to confirm success
If the deployment fails, check the following:
-
SSH Key Issues:
- Make sure the public key is correctly added to the server's
~/.ssh/authorized_keysfile - Verify the private key is correctly added to GitHub Secrets
- Make sure the public key is correctly added to the server's
-
Server Connection Issues:
- Check if the server hostname is correct in the workflow file
- Make sure the server is accessible from GitHub Actions
-
Permission Issues:
- Ensure the deploy script has execute permissions
- Check if the user has permission to write to the deployment directory
-
Environment Variables Issues:
- Make sure the
ENV_FILE_CONTENTsecret is properly set in GitHub Secrets - Verify that all required environment variables are included in the secret
- Check if the .env file is being created correctly in the workflow logs
- Make sure the
-
Script Issues:
- Review the deploy.sh script for any errors
- Check the GitHub Actions logs for detailed error messages
This repository includes several scripts to help troubleshoot deployment issues:
Run the following script to check if GitHub Actions deployment is working correctly:
./bin/check-deployment.shThis script will:
- Test SSH connection to the server
- Check if the remote directory exists
- Look for GitHub Actions test files
- Create a new test file to verify write access
- Check local Git configuration
If GitHub Actions deployment isn't working, you can manually deploy using:
./bin/manual-deploy.shThis script will:
- Deploy your code using rsync
- Make scripts executable on the remote host
- Run the test script to verify deployment
- Reload systemd daemon
- Optionally install/restart the service
To deploy your code and run database migrations in one step:
./bin/deploy-with-migrations.shThis script will:
- Deploy your code using the regular deploy script
- Run database migrations using the Supabase CLI
- Restart the service to apply all changes
This is the recommended way to deploy when you have database schema changes. The GitHub Actions workflow has been updated to use this script automatically, ensuring that migrations are applied during CI/CD deployments.
This project uses Supabase as its database. You need to set up the required tables before the application will work correctly.
-
Using Migrations:
./bin/supabase-db.sh migrate
This will run all migrations in the
supabase/migrationsdirectory. -
Manual Setup:
- Go to the Supabase dashboard: https://app.supabase.io
- Select your project
- Go to the SQL Editor
- Copy the contents of
supabase/migrations/20250419014200_initial_schema.sql - Paste into the SQL Editor and run the query
The application requires the following tables:
users- For storing user information and profilesapi_keys- For storing API keys for external integrationssubscriptions- For storing subscription informationcampaigns- For storing marketing campaign datacontacts- For storing prospect and customer informationsocial_accounts- For storing connected social media accountsscheduled_posts- For storing scheduled social media contentoutreach_sequences- For storing automated outreach workflows
These tables are defined in the Supabase migrations in the supabase/migrations directory.
This project uses the Supabase CLI for database migrations. Migrations are stored in the supabase/migrations directory and are managed by the Supabase CLI.
The Supabase CLI is automatically installed when you run the service installation script:
sudo ./bin/install-service.shAlternatively, you can use our database management script which will install the CLI if needed:
./bin/supabase-db.sh setupWe've created a single script to handle all Supabase database operations:
./bin/supabase-db.sh [command]Available commands:
-
Setup - Install Supabase CLI and link to your cloud project:
./bin/supabase-db.sh setup
-
Migrate - Run migrations on your Supabase database:
./bin/supabase-db.sh migrate
-
Create New Migration - Create a new migration file:
./bin/supabase-db.sh new add_campaign_analytics
Note: You need to add SUPABASE_DB_PASSWORD to your .env file. This is your database password from the Supabase dashboard.
ColdFollow integrates with various third-party services to provide comprehensive marketing capabilities:
- Mailgun: For transactional and marketing emails
- SendGrid: Alternative email service provider
- SMTP: Custom SMTP server support
- Twilio: For SMS campaigns and notifications
- Plivo: Alternative SMS service provider
- Twitter/X API: For posting and engagement
- LinkedIn API: For professional networking outreach
- Facebook/Meta API: For Facebook and Instagram posting
- TikTok API: For short-form video content
- OpenAI: For content generation and conversation AI
- ElevenLabs: For AI voice generation in phone calls
- Anthropic: Alternative AI service for content creation
- Google Analytics: For website traffic tracking
- Facebook Pixel: For social media conversion tracking
- Custom Analytics: Built-in analytics dashboard
Create a .env file with the following variables:
# Database
SUPABASE_URL=your_supabase_url
SUPABASE_KEY=your_supabase_key
SUPABASE_DB_PASSWORD=your_db_password
# Email Services
MAILGUN_API_KEY=your_mailgun_key
MAILGUN_DOMAIN=your_domain
FROM_EMAIL=[email protected]
# SMS Services
TWILIO_ACCOUNT_SID=your_twilio_sid
TWILIO_AUTH_TOKEN=your_twilio_token
TWILIO_PHONE_NUMBER=your_twilio_number
# AI Services
OPENAI_API_KEY=your_openai_key
ELEVENLABS_API_KEY=your_elevenlabs_key
# Social Media APIs
TWITTER_API_KEY=your_twitter_key
TWITTER_API_SECRET=your_twitter_secret
LINKEDIN_CLIENT_ID=your_linkedin_id
LINKEDIN_CLIENT_SECRET=your_linkedin_secret
# Payment Processing
STRIPE_SECRET_KEY=your_stripe_secret
STRIPE_PUBLISHABLE_KEY=your_stripe_publishable
# Application
PORT=3000
NODE_ENV=production
API_BASE_URL=https://coldfollow.com-
Clone the repository:
git clone https://github.com/your-username/coldfollow-web.git cd coldfollow-web -
Install dependencies:
pnpm install
-
Set up environment variables:
cp .env.example .env # Edit .env with your actual values -
Set up the database:
./bin/supabase-db.sh setup ./bin/supabase-db.sh migrate
-
Start the development server:
pnpm dev
-
Open your browser: Navigate to
http://localhost:3000
For detailed instructions on how to add new routes, pages, or components to the application, see the Generator Guide.
This guide covers:
- Creating marketing campaign interfaces
- Setting up social media integrations
- Adding new outreach channels
- Implementing analytics dashboards
- Best practices for feature development
We provide a template-based generator script that automates the process of creating various components:
# Generate a client-side route for campaigns
./bin/generator.js client route --route="/campaigns" --name="Campaigns" --auth --subscription
# Generate a server-side API route
./bin/generator.js server route --path="/api/v1/campaigns" --controller="Campaign" --method="post"
# Generate a database migration
./bin/generator.js server migration --name="add_campaign_analytics"
# Generate a controller
./bin/generator.js server controller --name="Campaign"Run the test suite:
pnpm testBuild the application:
pnpm build- Fork the repository
- Create a feature branch:
git checkout -b feature/new-feature - Make your changes and commit:
git commit -am 'Add new feature' - Push to the branch:
git push origin feature/new-feature - Submit a pull request
This project is licensed under the ISC License - see the LICENSE file for details.
For support and questions: