You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6c8fa57
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CLAUDE.md
+1-54Lines changed: 1 addition & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,41 +6,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
6
6
7
7
A scalable, distributed system for extracting and transforming LibreTexts content (hosted on the Mindtouch/NICE CXOne platform) into export formats like PDF and EPUB. It runs as two separate workers: an Express API and a background job processor.
8
8
9
-
## Commands
10
-
11
-
```bash
12
-
# Development
13
-
npm run dev:api # Run API worker with hot reload
14
-
npm run dev:processor # Run processor worker with hot reload
15
-
16
-
# Build
17
-
npm run build # Compile TypeScript to ./build (also copies src/styles)
18
-
19
-
# Lint
20
-
npm run lint # ESLint check
21
-
npm run lint-and-fix # ESLint with auto-fix
22
-
npm run prettier # Format all .ts files
23
-
24
-
# Database
25
-
npm run sync-db-schema # Sync Sequelize models to DB
26
-
27
-
# No tests are currently implemented
28
-
```
29
-
30
-
### Docker Development
31
-
32
-
```bash
33
-
# Start ephemeral MySQL only
34
-
docker compose -f docker-compose-mysql.dev.yml up -d
35
-
36
-
# Start full stack (MySQL + API + Processor)
37
-
docker compose -f docker-compose.dev.yaml up -d
38
-
39
-
# Build and run with local changes (uses run-dev-build.sh)
40
-
./run-dev-build.sh
41
-
```
42
-
43
-
### Test a job request
9
+
## Test a job request
44
10
45
11
```bash
46
12
curl --request POST \
@@ -73,18 +39,6 @@ GET /api/v1/download/:bookID/:format/:fileName
73
39
→ DownloadController → CloudFront signed URL redirect
-**`src/lambda/`** — AWS Lambda for CloudWatch backlog-per-instance metrics
86
-
-**`src/styles/`** — CSS copied into build output, used for PDF rendering
87
-
88
42
### Validation Pattern
89
43
90
44
All API routes use a shared `validateZod` middleware that attaches the validated payload to `req.data`. Handlers are typed as `ZodRequest<T>` for downstream type safety. Zod schemas live in `src/api/`.
@@ -100,13 +54,6 @@ All API routes use a shared `validateZod` middleware that attaches the validated
100
54
101
55
See `.env.example` for all variables. Key required vars: `AWS_REGION`, `BUCKET`, `CLOUDFRONT_*`, `SQS_*_QUEUE_URL`, `NODE_ENV`. Database vars (`DB_HOST`, `DB_USER`, `DB_PASSWORD`, `DB`) are optional and support read replicas (`*_READ` variants).
0 commit comments