9a6f75ebd8ebbfaf590ee1f6cc812c3d6e9725ef
Implement milestone M2 (backend setup):
- FastAPI app factory (core/app.py) with CORS, lifespan table
creation, and global error handlers using a standardized
{detail, code, errors?} envelope
- Endpoints: GET /health, GET /api/v1/health, GET /api/v1/version
- SQLAlchemy 2.0 ORM: Article, Author, Category models with
relationships, unique constraints, and FK pragma for SQLite
- Pydantic v2 schemas (create/update/read) for all models
- Env-driven config (DATABASE_URL, CORS_ORIGINS) + .env.example
- pytest suite (19 tests, ~95% coverage) with per-test SQLite
databases via fixtures
- Dockerfile (python:3.11-slim) and docker-compose.yml with a
persistent ./data/db volume and healthcheck
newzy
A news web application.
newzy is a news web application for discovering, reading, and managing news content. This repository is currently in its initial setup stage — application functionality will be implemented in upcoming milestones.
Project Status
| Milestone | Description | Status |
|---|---|---|
| M1 | Git project setup | Done |
| M2 | Backend setup (FastAPI) | Done |
| M3+ | News application features | Planned |
See milestones/ for milestone prompts and progress tracking.
Requirements
No runtime requirements yet (setup-only milestone). When development of the application begins, the toolchain will be documented here.
Getting Started
# 1. Clone the repository
git clone https://gitea.samson.media/daniel/newz-qwen-27b.git newzy
cd newzy
# 2. Check out the integration branch
git checkout develop
# 3. Create your feature branch
git checkout -b feature/<short-description>
# 4. Commit your changes (Conventional Commits)
git add .
git commit -m "feat: add <description>"
# 5. Push and open a pull request
git push -u origin feature/<short-description>
Full contribution guidelines, including branching, merging, and rebase workflows, are in CONTRIBUTING.md.
Documentation
- CONTRIBUTING.md — how to contribute
- docs/branching.md — branch strategy, merge and rebase workflows
- docs/conventions.md — file structure and naming conventions
- docs/commits.md — commit message format and examples
License
MIT © 2026 Daniel Samson
Languages
TypeScript
64.8%
Python
31%
CSS
2.6%
Makefile
0.6%
Dockerfile
0.5%
Other
0.5%