{"id":50733497,"url":"https://github.com/conceptpending/baseplate-example-feedback","last_synced_at":"2026-06-10T11:01:47.242Z","repository":{"id":360029949,"uuid":"1248377217","full_name":"ConceptPending/baseplate-example-feedback","owner":"ConceptPending","description":"Feedback Inbox — a small example app built on Baseplate by applying the public-submission-and-admin-queue recipe.","archived":false,"fork":false,"pushed_at":"2026-05-24T16:28:56.000Z","size":502,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-24T18:26:05.656Z","etag":null,"topics":["baseplate","baseplate-example","example","fastapi","feedback-form","nextjs"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ConceptPending.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-24T15:07:21.000Z","updated_at":"2026-05-24T16:26:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ConceptPending/baseplate-example-feedback","commit_stats":null,"previous_names":["conceptpending/baseplate-example-feedback"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ConceptPending/baseplate-example-feedback","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConceptPending%2Fbaseplate-example-feedback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConceptPending%2Fbaseplate-example-feedback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConceptPending%2Fbaseplate-example-feedback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConceptPending%2Fbaseplate-example-feedback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ConceptPending","download_url":"https://codeload.github.com/ConceptPending/baseplate-example-feedback/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConceptPending%2Fbaseplate-example-feedback/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34149132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["baseplate","baseplate-example","example","fastapi","feedback-form","nextjs"],"created_at":"2026-06-10T11:01:45.769Z","updated_at":"2026-06-10T11:01:47.232Z","avatar_url":"https://github.com/ConceptPending.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Feedback Inbox\n\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\nA small full-stack app: public-facing feedback form on `/submit`, admin review\nqueue at `/admin/submissions`. Each submission goes through `pending →\napproved | rejected` with optional reviewer notes.\n\n**This repo exists to demonstrate what [Baseplate](https://github.com/ConceptPending/baseplate)\nbecomes after applying one of its recipes — specifically\n[`docs/recipes/public-submission-and-admin-queue.md`](https://github.com/ConceptPending/baseplate/blob/main/docs/recipes/public-submission-and-admin-queue.md).**\nThe base codebase is Baseplate v0.1.0 with the `Item` example removed\nand the submission recipe applied. Total customisation: ~12 file changes,\nall the same kind of edit an LLM following the recipe would produce.\n\n## What it does\n\n- Public homepage (`/`) and submit form (`/submit`) — no account needed.\n  Each submission validates email + message length, lands in the database\n  with status `pending`. Rate-limited to 3/minute per IP.\n- Admin login (`/admin/login`) — email + password, bcrypt + JWT in\n  HttpOnly cookie, CSRF protection on every authenticated write.\n- Admin dashboard (`/admin`) — counts by status.\n- Admin submissions queue (`/admin/submissions`) — filter by status,\n  approve/reject, add reviewer notes.\n\n## What it inherits from Baseplate\n\nWithout changes:\n\n- FastAPI + SQLAlchemy 2 async + Pydantic v2 + Alembic\n- Next.js 16 App Router + React 19 + Tailwind 4\n- DB-backed multi-admin auth, JWT cookies, CSRF middleware,\n  per-endpoint rate limiting, structured logging with request IDs\n- Multi-stage non-root Docker images, healthchecks\n- CI workflow + opt-in Railway deploy (gated on `RAILWAY_DEPLOY_ENABLED`)\n- Pre-commit hooks (ruff, ESLint, tsc)\n- Generated TypeScript types from the FastAPI OpenAPI spec (`make generate-client`)\n- All the LLM-friendly conventions in `CLAUDE.md`\n\n## What changed from Baseplate\n\n| Removed | Added |\n|---|---|\n| `Item` model + routes + frontend pages | `Submission` model with status enum |\n| `(public)/items` page | `submit` form page |\n| `/admin/items` CRUD | `/admin/submissions` queue with status workflow |\n| `001_initial` migration (items) | `002_submissions` migration |\n| `api/items.py`, `api/public.py` | `api/submissions_admin.py`, `api/submissions_public.py` |\n| Baseplate-specific docs (DEPLOYMENT, SECURITY, etc.) | This README, demo-specific |\n\nCSRF middleware got one new exempt path — `/api/submissions` —\nbecause unauthenticated endpoints have no session identity for a\ncross-origin attacker to abuse. Rate limiting (3/min) + input\nvalidation cover that surface.\n\n## Quick start\n\n```bash\ncp .env.example backend/.env\ncp .env.example frontend/.env.local\n\nmake install \u0026\u0026 make install-hooks\nmake hash-password   # paste output into backend/.env as ADMIN_PASSWORD_HASH\n\nmake db              # Postgres on :5433\nmake migrate\nmake dev             # backend :8001, frontend :3001\n```\n\nVisit:\n- `http://localhost:3001` — the homepage\n- `http://localhost:3001/submit` — the public form\n- `http://localhost:3001/admin/login` — log in with the email + password from your `.env`\n\n## Forking this\n\nIf you want to build something on Baseplate yourself, **don't start\nfrom this repo**. Start from [Baseplate](https://github.com/ConceptPending/baseplate)\ndirectly and apply whichever [recipe](https://github.com/ConceptPending/baseplate/tree/main/docs/recipes)\nmatches your shape. This repo will get stale as Baseplate evolves.\n\n## License\n\nMIT — same as Baseplate.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconceptpending%2Fbaseplate-example-feedback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconceptpending%2Fbaseplate-example-feedback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconceptpending%2Fbaseplate-example-feedback/lists"}