Files
newz-qwen-27b/README.md
Daniel Samson 9a6f75ebd8 feat: add FastAPI backend with SQLite models and Docker setup
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
2026-10-30 12:44:54 +00:00

54 lines
1.7 KiB
Markdown

# 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/](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
```bash
# 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](CONTRIBUTING.md).
## Documentation
- [CONTRIBUTING.md](CONTRIBUTING.md) — how to contribute
- [docs/branching.md](docs/branching.md) — branch strategy, merge and rebase workflows
- [docs/conventions.md](docs/conventions.md) — file structure and naming conventions
- [docs/commits.md](docs/commits.md) — commit message format and examples
## License
[MIT](LICENSE) © 2026 Daniel Samson