DEV Community

Yixuan Hong
Yixuan Hong

Posted on

How I Built a Bilingual AI Career Assessment Tool—No Backend, Powered by EdgeOne Pages

How I Built a Bilingual AI Career Assessment Tool—No Backend, Powered by EdgeOne Pages

How I created a bilingual, intelligent career assessment platform using only frontend technologies and EdgeOne Pages deployment


🚀 Introduction

The AI revolution is reshaping the job market at an unprecedented pace. As a developer, I wanted to create a tool that could help people understand their career prospects in this new era. Thus, AI Survival Score was born - an intelligent web application that evaluates how "AI-proof" any job really is.

Live Demo: https://ai-survival-score-7wu8rm5whr.edgeone.app/

GitHub: https://github.com/yixuanhong/AI-Survival-Score

🎯 The Challenge

Most career analysis tools require backends or even AI APIs. But I challenged myself to recreate this with pure frontend logic, carefully mimicking intelligent reasoning using simulated rule-based models.

Creating a sophisticated career assessment tool presented several technical challenges:

  • Zero-backend architecture: All analysis must happen client-side
  • Multi-dimensional scoring: Complex algorithms for career evaluation
  • Bilingual support: Seamless English/Chinese switching
  • Professional UX: Export-quality reports and visualizations
  • Global accessibility: Fast loading times worldwide

Enter EdgeOne Pages - the perfect platform for this ambitious frontend-only project.

🏗️ Why EdgeOne Pages?

After evaluating various deployment platforms, EdgeOne Pages stood out for several reasons:

1. Perfect Match for Static Applications

EdgeOne Pages is specifically optimized for frontend-only applications. Unlike platforms that assume you need backend services, EdgeOne Pages embraces the power of modern static sites.

2. Global CDN Performance

With users potentially worldwide, EdgeOne Pages' global CDN ensures consistent performance. Our application loads in under 2 seconds globally - crucial for user engagement.

3. Developer-Friendly Deployment

The deployment process is refreshingly simple:

  1. Zip your project files
  2. Upload to EdgeOne Pages
  3. Get a live URL instantly
  4. Optional custom domain configuration

4. Enterprise-Grade Features

  • SSL/HTTPS by default
  • DDoS protection
  • High availability
  • Professional domain support

🔧 Technical Architecture

Frontend Stack

// Core Technologies
- Vanilla JavaScript (ES6+) - Zero framework dependencies
- Advanced CSS3 - Glassmorphism UI with animations  
- HTML5 Canvas - Interactive data visualizations
- html2canvas - Professional screenshot generation
Enter fullscreen mode Exit fullscreen mode

Intelligent Assessment Engine

The heart of the application is a sophisticated scoring algorithm that evaluates careers across four dimensions:

// Simplified algorithm structure
const CAREER_ASSESSMENT_DIMENSIONS = {
  creativity: {
    weight: 0.25,
    factors: ['originality', 'innovation', 'artistic_judgment']
  },
  interpersonal: {
    weight: 0.25, 
    factors: ['emotional_intelligence', 'relationship_management']
  },
  professional_judgment: {
    weight: 0.25,
    factors: ['experience_based_decisions', 'intuitive_expertise']
  },
  flexibility: {
    weight: 0.25,
    factors: ['task_variety', 'adaptability_requirements']
  }
};
Enter fullscreen mode Exit fullscreen mode

Multi-Language Architecture

Implementing bilingual support without a backend required careful planning:

// Dynamic language switching
function toggleLanguage() {
  const currentLang = document.documentElement.lang;
  const newLang = currentLang === 'en' ? 'zh' : 'en';

  // Update all UI elements
  updateUITexts(newLang);

  // Re-analyze if results exist
  if (hasExistingResults()) {
    regenerateAnalysis(newLang);
  }
}
Enter fullscreen mode Exit fullscreen mode

🎨 User Experience Design

Glassmorphism Interface

The modern UI uses advanced CSS techniques that showcase what's possible with pure frontend development:

.container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.1);
}
Enter fullscreen mode Exit fullscreen mode

Interactive Data Visualization

Using HTML5 Canvas for responsive, animated charts:

function drawProgressCircle(score) {
  const canvas = document.getElementById('circleChart');
  const ctx = canvas.getContext('2d');

  // Animated progress ring
  ctx.strokeStyle = "#6c63ff";
  ctx.beginPath();
  ctx.arc(70, 70, 60, -0.5 * Math.PI, 
    (score / 100) * 2 * Math.PI - 0.5 * Math.PI);
  ctx.stroke();
}
Enter fullscreen mode Exit fullscreen mode

🚀 EdgeOne Pages Deployment Experience

The Deployment Process

Deploying to EdgeOne Pages was remarkably straightforward:

  1. Prepare Project Structure:
   ai-survival-score/
   ├── index.html
   ├── app.js
   ├── lang.js  
   ├── style.css
   └── README.md
Enter fullscreen mode Exit fullscreen mode
  1. Create Deployment Package:

    • Ensure index.html is at the root level
    • Zip all files (critical: index.html must be in zip root)
  2. Upload and Deploy:

    • Navigate to EdgeOne Pages console
    • Choose "Upload from Local"
    • Select zip file
    • Get instant live URL

Performance Results

The results exceeded expectations:

Metric Result
Global Load Time < 2 seconds
Lighthouse Performance 95+
First Contentful Paint < 1.2s
Time to Interactive < 2.5s

Edge Computing Benefits

EdgeOne Pages' CDN distribution means our JavaScript-heavy application runs efficiently worldwide:

  • Asia-Pacific: ~1.1s load time
  • North America: ~1.3s load time
  • Europe: ~1.2s load time

💡 Key Learnings and Best Practices

1. Optimize for Static Deployment

When building for platforms like EdgeOne Pages, embrace the constraints:

// ✅ Good: Client-side processing
function analyzeCareerIntelligently(jobTitle) {
  // All logic happens in browser
  return performMultiDimensionalAnalysis(jobTitle);
}

// ❌ Avoid: Assuming server capabilities  
// fetch('/api/analyze', {...})
Enter fullscreen mode Exit fullscreen mode

2. Leverage CDN Advantages

Structure your application to maximize CDN benefits:

  • Minimize external dependencies
  • Optimize asset loading
  • Use efficient caching strategies

3. Mobile-First Responsive Design

With global CDN delivery, mobile users worldwide access your app:

/* Mobile-optimized responsive design */
@media (max-width: 768px) {
  .container {
    margin: 20px;
    padding: 30px 25px;
    max-width: calc(100vw - 40px);
  }
}
Enter fullscreen mode Exit fullscreen mode

🔍 Real-World Impact

Since deployment, the application has demonstrated the power of modern frontend architectures:

  • Zero server costs - Pure frontend deployment
  • Global accessibility - Thanks to EdgeOne CDN
  • Instant scaling - Handle traffic spikes automatically
  • Professional presentation - Export-quality reports

🚀 What's Next?

The success of this EdgeOne Pages deployment opens exciting possibilities:

Immediate Enhancements

  • Machine learning integration (client-side TensorFlow.js)
  • Progressive Web App (PWA) features
  • Enhanced data visualization libraries

Platform Expansion

  • Custom domain configuration
  • A/B testing different UI approaches
  • Analytics integration for usage insights

🏆 Conclusion: The EdgeOne Pages Advantage

Building AI Survival Score reinforced why EdgeOne Pages is perfect for modern web applications:

For Developers:

  • Simplified deployment - No server configuration needed
  • Performance by default - Global CDN without complexity
  • Professional infrastructure - Enterprise features without enterprise costs

For Users:

  • Lightning-fast loading - Global edge distribution
  • Reliable access - High availability and DDoS protection
  • Secure connections - HTTPS/SSL by default

For Projects:

  • Cost-effective scaling - No server costs as traffic grows
  • Global reach - Accessible worldwide with consistent performance
  • Professional presentation - Custom domains and enterprise reliability

🎯 Try It Yourself

Experience the power of EdgeOne Pages deployment:

  1. Visit the live application: AI Survival Score
  2. Explore the source code: GitHub Repository
  3. Deploy your own: Start with EdgeOne Pages today

The combination of modern frontend technologies and EdgeOne Pages' deployment platform proves that you can build sophisticated, globally-accessible applications without traditional backend complexity.

As a solo developer with limited resources, this project shows what’s possible when modern deployment meets purposeful design. EdgeOne Pages empowered me to turn vision into reality — without a single line of backend code.


What career would you like to analyze first? Try the AI Survival Score and discover your place in the AI-powered future of work!


🔖 Tags

EdgeOnePages #Frontend #WebDevelopment #AI #CareerTech #StaticSites #CDN #JavaScript #CSS3 #DeploymentStrategy

Top comments (0)