What Happen
A Modern And Minimalist News Aggregation Platform
Stay informed with real-time news from multiple sources
简体中文 | English

《What Happen》 is a comprehensive news aggregation platform that brings together information from multiple popular sources including social media, tech news, financial markets, and entertainment. Built with modern web technologies, it provides a clean, intuitive interface for staying updated with what's happening around the world.
Clone the repository
git clone https://github.com/LYX9527/what-happen.git
cd what-happen
Install dependencies
yarn install
# or
npm install
Environment setup
# Copy environment template
cp .env.example .env
# Configure API endpoint (default: http://localhost:10010)
VITE_API_BASE_URL=http://localhost:10010
Start development server
yarn dev
# or
npm run dev
Open your browser
Navigate to http://localhost:5173
# Build for production
yarn build
# Preview production build
yarn preview
This frontend application requires a backend API service running on port 10010 (configurable). The API should provide:
interface NewsItem {
id: string
title: string
url: string
extra?: {
info?: string
time?: string
rank?: number
thumbnail?: { url: string }
// ... additional metadata
}
}
interface ApiResponse<T> {
code: number
msg: string
data: T
}
# API Configuration
VITE_API_BASE_URL=http://localhost:10010 # Backend API URL
Edit app/pages/dashboard/index.vue to modify platform configurations:
const platformIcons = {
weibo: WeiBo,
github: Github,
// Add your custom platforms
}
app/ ├── api/ # API interfaces and configuration ├── components/ # Reusable Vue components │ ├── ui/ # Base UI components │ ├── NewsItems/ # News item components │ └── icon/ # Platform icon components ├── composables/ # Vue composition functions ├── pages/ # Application pages ├── router/ # Vue Router configuration └── lib/ # Utility functions
app/components/icon/app/components/NewsItems/app/api/news.tsWe welcome contributions! Please see our Contributing Guidelines for details.
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
For detailed changelog, see CHANGELOG.md
Made with ❤️ by the What Happen Team
Stay informed, stay connected