#!/bin/bash
# Build script for CRM application

echo "Building CRM application..."

# Create data directory if it doesn't exist
mkdir -p /Users/d-robotics/crm/crm-go/data

# Build the application
go build -o /Users/d-robotics/crm/crm-go/bin/server /Users/d-robotics/crm/crm-go/cmd/server/main.go

if [ $? -eq 0 ]; then
    echo "Build successful!"
    echo "To run the application, execute: ./bin/server"
else
    echo "Build failed!"
fi