# AI Recruitment Site Template A fully customizable recruitment website template designed for easy deployment and AI agent modification. Built with Node.js, Express, and PostgreSQL with comprehensive environment-based configuration. ## 🎯 Use This Template This repository is marked as a template. You can create your own recruitment site in minutes! ### Quick Start (3 Steps) 1. **Use this template** - Click "Use this template" on Gitea 2. **Customize** - Edit `.env` file with your company information 3. **Deploy** - Run the automated deployment script ## ✨ Features ### Public Features - Job listings with search and filters - Online application system with CV upload - Contact form - Fully responsive design - Dynamic branding and content ### Admin Features - Dashboard with statistics - Application management - CV downloads and viewing - Job posting management - First-time admin account creation ### Template Features - **Environment-based configuration** - All customization via `.env` file - **Dynamic branding** - Company name, colors, contact info all configurable - **AI agent friendly** - Clear structure for automated modifications - **One-click deployment** - Automated deployment to StartAnAiCompany infrastructure - **No hardcoded values** - Everything is configurable ## 🚀 Quick Deployment ### Prerequisites - Gitea account at git.startanaicompany.com - SAAC API key (get from apps.startanaicompany.com) - Basic command line knowledge **📖 Detailed Guide:** See [DEPLOYMENT_GUIDE.md](DEPLOYMENT_GUIDE.md) for complete instructions. ### Step 1: Create Your Copy Use Gitea's template feature to create your own copy: ```bash # Or clone the template manually git clone https://git.startanaicompany.com/StartanAICompany/ai-recruit-site-template.git my-recruit-site cd my-recruit-site ``` ### Step 2: Customize Configuration ```bash # Copy the example environment file cp .env.example .env # Edit .env with your company information nano .env ``` **Minimum required configuration in `.env`:** ```bash # Company Information COMPANY_NAME="Your Recruitment Firm" COMPANY_TAGLINE="Your Tagline Here" COMPANY_DESCRIPTION="Your company description" # Branding Colors PRIMARY_COLOR=#2563EB ACCENT_COLOR=#059669 DARK_COLOR=#1E293B # Contact Information CONTACT_EMAIL=info@yourcompany.com CONTACT_PHONE=+1 (555) 123-4567 CONTACT_ADDRESS=123 Business St, City, State 12345 # Deployment Configuration SUBDOMAIN=yourname GITEA_USERNAME=your-gitea-username GITEA_REPO_NAME=my-recruit-site ``` ### Step 3: Register for API Key Register once to get your deployment API key: ```bash curl -X POST https://apps.startanaicompany.com/api/v1/register \ -H "Content-Type: application/json" \ -d '{"email":"your@email.com","gitea_username":"'${GITEA_USERNAME}'"}' ``` Save the returned API key: ```bash export SAAC_API_KEY="cw_your_api_key_here" ``` ### Step 4: Deploy ```bash # Copy and run the deployment script cp deploy-to-apps.example.sh deploy-to-apps.sh chmod +x deploy-to-apps.sh ./deploy-to-apps.sh ``` The script will: - Create application on StartAnAiCompany infrastructure - Configure domain (yournamerecruit.startanaicompany.com) - Set up webhooks for automatic deployments - Trigger initial deployment **Your site will be live in 2-3 minutes!** **See [DEPLOYMENT_GUIDE.md](DEPLOYMENT_GUIDE.md) for detailed instructions and troubleshooting.** ## 🎨 Customization Guide ### Company Information All company information is configured via environment variables in `.env`: ```bash # Company Identity COMPANY_NAME="Your Recruitment Firm" COMPANY_TAGLINE="Finding the Perfect Match for Your Career" COMPANY_DESCRIPTION="We specialize in connecting talented professionals..." # Contact Details CONTACT_EMAIL=info@yourcompany.com CONTACT_PHONE=+1 (555) 123-4567 CONTACT_ADDRESS=123 Business St, Suite 100, City, State 12345 BUSINESS_HOURS=Monday - Friday: 9:00 AM - 6:00 PM # Social Media (leave empty to hide) SOCIAL_LINKEDIN=https://linkedin.com/company/yourcompany SOCIAL_TWITTER=https://twitter.com/yourcompany SOCIAL_FACEBOOK= ``` ### Branding Colors Customize your brand colors: ```bash PRIMARY_COLOR=#2563EB # Main brand color (buttons, links) ACCENT_COLOR=#059669 # Success/accent color DARK_COLOR=#1E293B # Dark elements (footer, headings) ``` Colors update automatically across the entire site! ### About Page Content ```bash ABOUT_MISSION=Our mission statement here ABOUT_VISION=Our vision statement here ABOUT_VALUES=Integrity, Excellence, Innovation, Partnership ``` ### Services Offered ```bash SERVICES_LIST=Executive Search,Contract Staffing,Permanent Placement,Career Consulting ``` ### Feature Configuration ```bash MAX_CV_SIZE_MB=5 ALLOWED_CV_TYPES=application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document ``` ## 🤖 AI Agent Modification This template is designed to be easily modified by AI agents like Claude Code. The structure includes: ### Clear File Organization ``` ai-recruit-site-template/ ├── config.js # Centralized configuration ├── server.js # Main application ├── public/ │ ├── js/ │ │ └── init.js # Dynamic config injection │ ├── css/ │ │ └── styles.css # CSS with variables │ └── *.html # HTML with data attributes ├── migrations/ # Database migrations └── .env.example # Configuration template ``` ### Data Attributes HTML elements use data attributes for dynamic content: ```html