Skip to content

junguanghe/China-rate-companies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

中国公司评级平台

基于 Elo 评分系统的中国公司排名平台,用户可以比较两个公司并投票,系统会根据投票结果实时更新公司排名。

功能特性

  • 🏢 中国公司对比投票
  • 📊 基于 Elo 系统的动态排名
  • 🔥 实时排行榜
  • 🚀 快速响应

技术栈

  • 后端:Node.js + Express + SQLite
  • 前端:React

快速开始

安装依赖

# 安装后端依赖
npm install

# 安装前端依赖
cd client && npm install && cd ..

运行项目

开发模式

需要两个终端:

终端 1 - 启动后端服务器:

npm run dev
# 或者
npm start

后端运行在 http://localhost:5000

终端 2 - 启动前端开发服务器:

npm run client

前端运行在 http://localhost:3000

然后在浏览器访问 http://localhost:3000

生产模式

# 构建前端
npm run build

# 启动后端(会自动服务前端构建文件)
npm start

访问 http://localhost:5000

项目结构

├── server.js          # Express 后端服务器
├── database.js        # 数据库初始化和操作
├── elo.js            # Elo 评分系统
├── client/           # React 前端应用
└── companies.json    # 初始公司数据

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published