## Features Added - **Industry News Navigation**: Added "业界动态" menu with dropdown categories - **News Crawler Service**: Standalone Node.js service for RSS feed crawling - **Real-time Content**: Crawls healthcare, robotics, and industry news from multiple sources - **Smart Categorization**: AI-powered content classification system - **Markdown Content**: Converts news content to markdown format for blog-style display - **News Detail Pages**: Full article view with syntax highlighting and related articles - **API Integration**: RESTful API with caching, authentication, and real-time updates ## Technical Implementation - Express.js API server with SQLite database - RSS parser with content extraction and deduplication - Intelligent categorization using keyword matching and scoring - React components with TypeScript for news display - Markdown rendering with react-markdown and syntax highlighting - Responsive design with Tailwind CSS and Framer Motion animations - Automated scheduling for content updates every 30 minutes ## Data Sources - 36氪 (investment and healthcare news) - 雷锋网 (AI and robotics technology) - 亿欧网 (industry trends) - 动脉网 (medical robotics) - 机器之心 (AI and deep learning) - Additional healthcare policy sources ## User Experience - Click-to-read news cards with category filtering - Real-time statistics dashboard - Search and filtering capabilities - Mobile-responsive design - Blog-style article reading experience - Share functionality and related article suggestions The system successfully crawls and displays real industry news content, replacing mock data with live updates from major Chinese tech and healthcare publications.
14 lines
413 B
Bash
14 lines
413 B
Bash
# Vite Environment Variables Example
|
|
# Copy this file to .env.local and fill in your actual values
|
|
|
|
# News API Configuration
|
|
VITE_NEWS_API_URL=https://api.omniverse.com/news
|
|
VITE_NEWS_API_KEY=your_custom_api_key_here
|
|
|
|
# Third-party News APIs (Optional)
|
|
VITE_NEWSAPI_KEY=your_newsapi_org_key
|
|
VITE_JUHE_KEY=your_juhe_api_key
|
|
|
|
# Development Settings
|
|
VITE_API_BASE_URL=http://localhost:3001
|
|
VITE_ENABLE_MOCK_DATA=true |