Quick Start Guide
Get up and running with the Helpline Service in 10 minutes.
Prerequisites
- Docker 20.10+
- Docker Compose 2.0+
- Git
- 4GB RAM minimum
- 20GB disk space
Step-by-Step Setup
1. Clone the Repository
bash
git clone https://github.com/openchlai/ai.git
cd ai/helplinev12. Configure Environment
bash
cp .env.example .envEdit .env to set your configuration:
bash
# Database
MYSQL_ROOT_PASSWORD=your_secure_password
MYSQL_DATABASE=helpline_db
MYSQL_USER=helpline_user
MYSQL_PASSWORD=helpline_password
# Application
APP_NAME=openCHS Helpline
APP_PORT=8888
APP_ENV=development
# AI Service (optional)
AI_SERVICE_URL=http://ai-pipeline:8125
ENABLE_AI_SERVICE=true3. Start Services
bash
# Build and start all containers
docker-compose up -d
# Wait for services to initialize (2-3 minutes)
sleep 180
# Verify services are running
docker-compose ps4. Access the Application
Open your browser and navigate to:
http://localhost:8888Default Credentials:
- Username:
admin - Password:
password
⚠️ Important: Change the default password immediately on first login.
Verify Installation
Check Services
bash
# View all running containers
docker-compose ps
# Expected output:
# NAME STATUS
# helpline-nginx Up
# helpline-php Up
# helpline-mysql Up
# ai-pipeline Up (if enabled)Test API
bash
# Test health endpoint
curl http://localhost:8888/api/health
# Expected response:
# {"status": "healthy"}View Logs
bash
# All services
docker-compose logs -f
# Specific service
docker-compose logs -f helpline-phpFirst Steps in the Application
1. Log In
- Navigate to http://localhost:8888
- Enter admin credentials
- Change default password
2. Create Your First User
- Go to Settings → Users
- Click Add User
- Fill in user details
- Select user role (Agent, Supervisor, Admin)
- Save
3. Create a Case
- Go to Cases → New Case
- Fill in client information
- Describe the situation
- Select case category
- Submit
4. Monitor Dashboard
- Go to Dashboard
- View real-time statistics
- Monitor agent performance
- Check call queue status
Stop Services
bash
# Stop all services
docker-compose down
# Stop and remove volumes (clear data)
docker-compose down -vTroubleshooting
Services Won't Start
bash
# Check logs
docker-compose logs
# Verify Docker is running
docker ps
# Restart services
docker-compose restartCan't Access Application
bash
# Check if port 8888 is in use
lsof -i :8888
# Check container is running
docker-compose ps helpline-nginx
# View nginx logs
docker-compose logs helpline-nginxDatabase Connection Error
bash
# Check MySQL is running
docker-compose ps helpline-mysql
# View MySQL logs
docker-compose logs helpline-mysql
# Verify credentials in .env match docker-compose.ymlNext Steps
- Installation & Deployment - Full deployment guide
- Configuration Guide - Advanced configuration
- API Reference - API documentation
- Development Guide - Contributing & extending
- Deployment Workflow - CI/CD setup
Deployment Workflow
For Development
bash
# 1. Clone from main repo
git clone https://github.com/openchlai/ai.git
cd ai/helplinev1
# 2. Create your feature branch
git checkout -b feature/my-feature
# 3. Make changes and test locally
# 4. Push to your branch
git push origin feature/my-feature
# 5. Create Pull Request to dev branch
# (via GitHub)
# 6. Once merged with dev, automatically deployed to:
# http://192.168.10.119/helplineFor Production
Deployment to production follows approval and testing processes defined in your CI/CD pipeline.