Skip to content

SpringBoot3 + vue3 开发的程序员闯关答题应用,古战场风格,AI生成题目和判题并给出学习建议和面试题。

Notifications You must be signed in to change notification settings

FencyJay/code-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

程序员练兵场

Spring Boot Vue MySQL License

一个基于AI技术的编程练习平台,采用古战场主题,让编程学习充满乐趣

📖 项目简介

程序员练兵场将编程练习融入古战场主题。用户扮演将军,通过解题提升“俸禄”,AI 智能出题,提供个性化挑战。

👉 线上体验地址

✨ 功能特性

  • ⚔️ 古战场主题化学习体验
  • 🤖 AI 智能出题(基于 LangChain4j + 通义千问)
  • 💰 俸禄系统 & 排行榜
  • 📜 征战史料(学习历史)
  • 🎯 多技术方向(前端、后端、AI、游戏开发等)

📂 项目结构

coder-practice
├── coder-practice-backend   # 后端 (Spring Boot)
├   └── sql                   # 数据库建表语句
├── coder-practice-frontend  # 前端 (Vue 3 + Vite)

🚀 快速开始

环境要求

  • JDK: 21+
  • Node.js: 16+
  • MySQL: 8.0+
  • Maven: 3.6+

1. 克隆项目

git clone https://github.com/FencyJay/coder-practice.git
cd coder-practice

2. 数据库配置

导入 sql 目录下的脚本,创建数据库。

3. 启动后端

cd coder-practice-backend

# 编辑配置文件 application-local.yml

spring:
  datasource:
    url: jdbc:mysql://localhost:3306/coder_practice?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
    username: coder_user
    password: your_password

langchain4j:
  community:
    dashscope:
      chat-model:
        api-key: your_ai_api_key
        model-name: qwen3-coder-plus
        temperature: 0.7
        max-tokens: 4096
        log-requests: true
        log-responses: true

sentry:
  dsn: your_sentry_dsn
  send-default-pii: true

# 启动服务
mvn spring-boot:run

后端服务运行在 http://localhost:8001。

4. 启动前端

cd coder-practice-frontend

# 安装依赖并启动
npm install
npm run dev

前端运行在 http://localhost:5173。

📦 部署方式

支持 Docker Compose 一键部署传统 Nginx + Jar 包部署(详见 docs/deploy.md)。

📏 开发规范

  • 后端:分层架构(Controller → Service → Mapper),统一异常处理,MyBatis Plus
  • 前端:Vue 3 + Pinia,组件单一职责,ESLint + Prettier 格式化

About

SpringBoot3 + vue3 开发的程序员闯关答题应用,古战场风格,AI生成题目和判题并给出学习建议和面试题。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published