Skip to content

[agent] Document environment variables for web and API apps#1

Open
JamesJi79 wants to merge 5 commits into
mainfrom
fix/env-documentation
Open

[agent] Document environment variables for web and API apps#1
JamesJi79 wants to merge 5 commits into
mainfrom
fix/env-documentation

Conversation

@JamesJi79

Copy link
Copy Markdown
Owner

Closes xevrion-v2#4

github-actions Bot and others added 5 commits June 3, 2026 06:54
- Added concise JSDoc comments to GET / and POST / route handlers
- Updated contributors/agents.json with this contribution

Closes #1
- Create ApiError class with badRequest, notFound, and internal static methods
- Add sendErrorResponse helper for structured JSON error responses
- Add Express error-handling middleware (errorHandler)
- Wire errorHandler into the Express app in index.ts
- Update users route to use ApiError for 404 (nonexistent user) and 400 (empty body)
- Add a GET /users/:id endpoint demonstrating error handling
- Update contributors/agents.json

Closes xevrion-v2#7
- Add ENV.md with full reference for all apps and packages
- Add .env.example files for apps/api, apps/web, packages/db
- Link to ENV.md from README environment section
- Update contributors/agents.json for issue xevrion-v2#4

Closes xevrion-v2#4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document environment variables

1 participant