M3 frontend infrastructure for the newzy news application: - Vite + React 18 + TypeScript project (Node >=18) in frontend/ - React Router v6: BrowserRouter in App.tsx, routes for /, /articles, /articles/:id and /categories, Link/NavLink-based navigation - lucide-react icons (Home, FileText, Settings, Search, ...) in the responsive Header (desktop + mobile menu) and article components - Reusable components: ArticleCard, AuthorAvatar, CategoryBadge (CVA), Layout shell with backend API status indicator in the footer - Typed API client (fetch wrapper, ApiError, endpoint helpers) with types matching the backend models; sample-data fallback until the backend article endpoints exist - Tailwind CSS global/component styles, cn() helper (clsx + tailwind-merge) - Unit tests: Vitest + React Testing Library (23 tests, 100% statement coverage on components) - E2E tests: Playwright (9 tests) covering page shell, feed rendering, client-side navigation, article route and API interactions - ESLint (react + react-hooks + typescript) configured and passing - Multi-stage Dockerfile (Vite build -> Nginx) with SPA fallback and an /api/ proxy to the backend service; docker-compose frontend service on port 3000 in both frontend/ and the root docker-compose.yml - README with setup, API documentation, testing and Docker instructions
69 lines
2.3 KiB
Markdown
69 lines
2.3 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 | Frontend setup (React + Vite) | Done |
|
|
| M4+ | News application features | Planned |
|
|
|
|
See [milestones/](milestones/) for milestone prompts and progress tracking.
|
|
|
|
## Requirements
|
|
|
|
- **Backend** ([`backend/`](backend/)): Python 3.11+, FastAPI (see [backend/README.md](backend/README.md))
|
|
- **Frontend** ([`frontend/`](frontend/)): Node.js 18+ (see [frontend/README.md](frontend/README.md))
|
|
- **Docker** (optional): for the containerized setup via the root [`docker-compose.yml`](docker-compose.yml)
|
|
|
|
## 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).
|
|
|
|
## Running the application
|
|
|
|
```bash
|
|
# Full stack (backend :8000 + frontend :3000)
|
|
docker compose up --build
|
|
```
|
|
|
|
Or run each half locally — see the component READMEs for details:
|
|
|
|
- [frontend/README.md](frontend/README.md) — `npm run dev` (port 5173)
|
|
- [backend/README.md](backend/README.md) — `uvicorn main:app --reload` (port 8000)
|
|
|
|
## 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
|