登录 注册
开发者工具数据分析与数据处理内容创作与媒体工具 dockerelixirhacktoberfestjavascriptlearn-to-codephoenix
901
Stars
241
Forks
17
Watchers
0
Open Issues
AGPL-3.0
许可证
Elixir
语言
2017-07-24
创建时间
2026-11-05
最近更新

项目能做什么

程序员对战游戏,可与其他玩家实时在线比拼算法题,支持单人对战与大型锦标赛。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Codebattle

[![Actions Status](https://github.com/hexlet-codebattle/codebattle/workflows/Build%20master/badge.svg)](https://github.com/hexlet-codebattle/codebattle/actions)
[![codecov](https://codecov.io/gh/hexlet-codebattle/codebattle/branch/master/graph/badge.svg)](https://codecov.io/gh/hexlet-codebattle/codebattle)

Codebattle - is an open source game being developed by the Hexlet community.
The current version of the application is available at [codebattle.hexlet.io](https://codebattle.hexlet.io).

This project exists thanks to all the people who contribute. [Contribute guideline.](CONTRIBUTING.md)

<a href="https://github.com/hexlet-codebattle/codebattle/graphs/contributors"><img src="https://opencollective.com/codebattle/contributors.svg?width=890"></a>

![Alt](https://repobeats.axiom.co/api/embed/cb0f9e443414905bb8a0e437460095b05bc11caf.svg "Repobeats analytics image")

### Requirements

- Mac / Linux
- Docker
- Optional: an editor that supports the [Dev Container specification](https://containers.dev/)

### Install

```bash
git clone git@github.com:hexlet-codebattle/codebattle.git
cd codebattle
make setup
```

`make setup` builds the pinned development image, installs Elixir and frontend
dependencies inside it, starts PostgreSQL, and prepares the database. Host
installations of Elixir, Erlang, Node.js, pnpm, and Go are not used.

To work from an editor, open the repository and choose **Reopen in Container**.
The same Make commands work in a host terminal and in the container terminal.

### Start Server

```bash
make server
```

- Open <http://localhost:4000>

### Run Tests

```bash
make test
make test-fe
```

### Lint

```bash
make lint
make credo
make check-js

# To run specific
make format
make lint-js-fix
```

### Useful

```bash
make console
make dev-shell
make dev-exec CMD='mix upload_langs'

make db-migrate
make dev-rebuild
make dev-down
make clean # Removes the development containers and their persistent volumes
```

All application commands run in the non-root development container. The source
tree is the only host directory mounted into it; dependency caches and database
data use Docker-managed volumes. Host Docker/Podman sockets and host credential
directories are intentionally not mounted.

The repository is writable inside the container, so keep only disposable
development credentials in `.env`. Never put production or personal cloud
credentials in the workspace. The host `.env` is masked in the container and
only the variables explicitly allowlisted in `compose.yml` are passed through.

Runner image build and publish targets still execute through the host container
engine because they orchestrate other containers. Treat those targets as
privileged operations and use them only with trusted code.

Codebattle is a single Phoenix app: `lib/`, `test/`, `priv/`, `frontend/`, and
`static/` live at the repository root. Shared language and checker code lives in
`lib/codebattle/runner/`; language image sources live in `images/`.

Sol
阅读完整原文

商业机会分析 AI 生成

B2B 技术招聘与技能竞赛白标 SaaS / 专有部署

产品构想基于现有 Phoenix + 多语言沙箱架构,封装为面向企业招聘技术笔试、团队 Coding 对抗赛或黑客松的开箱即用平台,提供多题库、防作弊与排行榜管理。
核心功能企业 SSO/子域名白标支持、自定义题目与测试用例编辑器、实时防作弊监测与回放、竞赛/对战数据导出与报表
目标用户科技公司 HR/技术团队负责人、高校计算机竞赛组织者、开发者社群运营方
难度/周期高 · 3-6个月 · 成本:服务器/沙箱资源成本、安全审计成本、企业资质与营销推广费用
收费模式SaaS 按场次/并发选手收费,或单次企业比赛技术支持费(推测)
竞争风险开源协议为 AGPL-3.0,网络服务使用时必须开源其衍生代码,商业化闭源包装受限;沙箱存在远程代码执行安全风险;Elixir/Phoenix 技术栈维护门槛较高。
依据 已验证事实

IT 教育培训机构的实时互动教学插件/解决方案

产品构想针对编程培训营(Bootcamp)和高校教学,提供随堂算法对抗、作业实时自动化多语言评测与互评系统。
核心功能班级/战队管理、课堂实时答题对抗模式、多语言(当前支持 16+ 语言)代码自动运行打分、教学进度大屏看板
目标用户少儿/成人编程培训机构教师、大学计算机课程助教
难度/周期中等 · 2-4个月 · 成本:多语言沙箱容器运行服务器成本、前端教学管理后台开发
收费模式按机构学员数收取月度/年度软件订阅费(推测)
竞争风险需符合 AGPL 约束(若修改平台需开放源码);获客周期长,需对接现有 LMS 系统。
依据 数据支持的判断

托管型轻量代码多语言执行沙箱 API(Runner as a Service)

产品构想提取项目中的 Zig + 独立容器隔离的多语言 Runner 架构,向其他低代码、教育类网站提供高安全、低延迟的多语言代码运行与测试沙箱 API。
核心功能支持 16+ 种语言的安全隔离沙箱(Zig runner)、按用例测试结果返回、速率限制与 API 鉴权、轻量 SDK
目标用户独立开发者、小型编程教程网站站长、技术博主
难度/周期高 · 3-5个月 · 成本:多地域高并发容器集群、安全漏洞防护与带宽成本
收费模式按 API 调用次数/运行时长阶梯计费(推测)
竞争风险Judge0、Piston 等成熟竞品壁垒高;恶意代码逃逸风险极高;非 AGPL 代码分离需要严格架构隔离。
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
ohmyzsh/ohmyzsh 中文介绍暂未生成
🙃 A delightful community-driven (with 2,500+ contributors)
190,543 Shell
Stirling-Tools/Stirling-PDF 中文介绍暂未生成
#1 PDF Application on GitHub that lets you edit PDFs on any
96,304 TypeScript
louislam/uptime-kuma 中文介绍暂未生成
A fancy self-hosted monitoring tool
93,518 JavaScript
bregman-arie/devops-exercises 中文介绍暂未生成
Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansibl
86,731 Python
macrozheng/mall 中文介绍暂未生成
mall项目是一套电商系统,包括前台商城系统及后台管理系统,基于Spring Boot+MyBatis实现,采用Dock
85,036 Java
netdata/netdata 中文介绍暂未生成
The fastest path to AI-powered full stack observability, eve
81,371 Go
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2017-07-24,近 30 天仍在推送
社区活跃Star 901 / Fork 241 / Issue 0(数据支持,可自行核实)
许可证AGPL-3.0 商用需注意传染性条款
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/hexlet-codebattle/codebattle.git
cd codebattle
docker compose up -d   # 或参考 README 中的 docker run 命令
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。