Skip to content

Commit bf500b8

Browse files
committed
add CI, .env.example, fix package name
- GitHub Actions CI: backend lint + import check, frontend typecheck + build - .env.example with supported providers and model override - Rename frontend package to codeabc-frontend v0.1.0 - Add repo topics: ai, code-reader, education, non-programmer, etc.
1 parent b429779 commit bf500b8

3 files changed

Lines changed: 43 additions & 2 deletions

File tree

.env.example

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# LLM API Key — pick one provider
2+
OPENAI_API_KEY=sk-xxx
3+
# ANTHROPIC_API_KEY=sk-ant-xxx
4+
# DEEPSEEK_API_KEY=xxx
5+
6+
# Model override (default: gpt-4o-mini)
7+
# CODEABC_MODEL=deepseek/deepseek-chat
8+
# CODEABC_MODEL=claude-sonnet-4-20250514
9+
10+
# Frontend origin for CORS (default: http://localhost:5173)
11+
# FRONTEND_ORIGIN=https://your-domain.com

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
backend:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: "3.12"
17+
- run: pip install -e ".[dev]"
18+
- run: ruff check backend/
19+
- run: python -c "from backend.app import app; print('Import OK')"
20+
21+
frontend:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: actions/setup-node@v4
26+
with:
27+
node-version: "20"
28+
- run: cd frontend && npm ci
29+
- run: cd frontend && npx tsc --noEmit
30+
- run: cd frontend && npm run build

frontend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "frontend",
2+
"name": "codeabc-frontend",
33
"private": true,
4-
"version": "0.0.0",
4+
"version": "0.1.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

0 commit comments

Comments
 (0)