Skip to content

Refine Starter Docs And API Guidance Based On Initial Trainee Feedback#64

Open
oleksiybondar wants to merge 28 commits into
mainfrom
improvements-from-feedback
Open

Refine Starter Docs And API Guidance Based On Initial Trainee Feedback#64
oleksiybondar wants to merge 28 commits into
mainfrom
improvements-from-feedback

Conversation

@oleksiybondar
Copy link
Copy Markdown

Summary

Refines the backend starter based on early trainee feedback. Focuses on reducing setup ambiguity, clarifying structure, and making common patterns easier to find without turning it into a full tutorial.

Changes
• Standardized on PostgreSQL and updated setup docs
• Added Knex CLI support (knexfile.js) + migration/seed guidance
• Clarified demo vs custom DB schema usage
• Added structured JSON API error handling
• Improved middleware guidance (before/after routes, placement, route-level usage)
• Added input validation guidance (Zod + manual options)
• Wired validation into example event controllers (query + params)
• Clarified starter scope vs full project expectations

Why

Addresses common friction points:
• DB setup
• Knex workflow
• Middleware usage
• Error handling
• Validation approach
• Starter vs project confusion

Notes
• Starter remains minimal (not a replacement for PRD/plan)
• Guidance is flexible, not prescriptive

oleksiybondar and others added 28 commits February 28, 2026 11:00
Co-authored-by: Adam Blanchard <adamgoodie@gmail.com>
Co-authored-by: Adam Blanchard <adamgoodie@gmail.com>
Co-authored-by: Adam Blanchard <adamgoodie@gmail.com>
…f Swagger/Express path wars definition descripency
…instructions for creating migrations and seeds.
…rminalMiddlewares`. Add error handlers (`apiNotFoundHandler`, `apiErrorHandler`) and update setup in `index.mjs`. Expand README with middleware usage guidelines.
…, adding dependencies, and managing environment variables.
…ntrollers. Update `listEvents` with pagination, add new schemas for events, and improve error handling with detailed `ZodError` support. Update README with validation examples and guidance.
…pi/README.md`. Add guidance on aligning starter examples with project contracts.
Co-authored-by: Adam Blanchard <adamgoodie@gmail.com>
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.

2 participants