chore: initial project setup with documentation and standards
This commit is contained in:
1 parent
4c82e4f54c
commit
0824474e70
6 files changed
+803
-106
No files matched your search
@@ -1,55 +1,93 @@
|
||||
# News Benchmark
|
||||
# newzy - News Web Application
|
||||
|
||||
A benchmark that tests how local language models perform on real world software engineering tasks.
|
||||
A modern, responsive news web application built for efficient content management and user engagement.
|
||||
|
||||
## The challenge:
|
||||
## Overview
|
||||
|
||||
Make and maintain a news web application.
|
||||
**newzy** is a web-based platform for reading and managing news content. The project provides a clean interface for consuming news articles with features like:
|
||||
|
||||
## Structure
|
||||
- Real-time news updates
|
||||
- Category-based filtering
|
||||
- User-friendly search functionality
|
||||
- Responsive design for mobile and desktop
|
||||
|
||||
Most real applications, are not made in a single shot. This benchmark reflects this by simulating tickets as milestones. Each milestone is a separate markdown file, containing prompt, description, acceptance criteria, technical details, and QA notes.
|
||||
## Prerequisites
|
||||
|
||||
## Scoring
|
||||
Before you begin, ensure you have the following installed:
|
||||
|
||||
The model performing the benchmark will be scored against the acceptance criteria and the tests written as proof of work:
|
||||
- [Node.js](https://nodejs.org/) (v18 or higher)
|
||||
- [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/)
|
||||
- [Git](https://git-scm.com/)
|
||||
|
||||
| Score | Criteria |
|
||||
|-------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| 0 | Agent failed to implement acceptance criteria |
|
||||
| 1 | Agent partially implemented acceptance criteria that builds successfully |
|
||||
| 2 | Agent fully implemented acceptance criteria that builds successfully |
|
||||
| 3 | Agent fully implemented acceptance criteria that builds successfully, includes passing unit/integration tests with 50% code coverage |
|
||||
| 4 | Agent fully implemented acceptance criteria that builds successfully, includes passing unit/integration tests, passing end-to-end tests, with 80% code coverage |
|
||||
| 5 | Agent fully implemented acceptance criteria that builds successfully, includes passing unit/integration tests, and passing end-to-end tests with 100% code coverage |
|
||||
## Setup Instructions
|
||||
|
||||
## Milestones
|
||||
### 1. Clone the Repository
|
||||
|
||||
This benchmark consists of multiple milestones, each representing a separate task:
|
||||
```bash
|
||||
git clone <repository-url>
|
||||
cd newzy
|
||||
```
|
||||
|
||||
### M1: Git Repository Setup
|
||||
- [M1 - Setup Git Project](milestone/m1-setup-git-project-prompt.md)
|
||||
- [M1 - Setup Git Project Scoring](milestone/m1-setup-git-project-scoring.md)
|
||||
### 2. Install Dependencies
|
||||
|
||||
### M2: Backend Infrastructure
|
||||
- [M2 - Setup Backend](milestone/m2-setup-backend-prompt.md)
|
||||
- [M2 - Setup Backend Scoring](milestone/m2-setup-backend-scoring.md)
|
||||
```bash
|
||||
npm install
|
||||
# or
|
||||
yarn install
|
||||
```
|
||||
|
||||
### M3: Frontend Application
|
||||
This benchmark consists of multiple milestones, each representing a separate task:
|
||||
### 3. Environment Configuration
|
||||
|
||||
### M5: Authentication System
|
||||
- [M5 - Setup Authentication](milestone/m5-setup-authentication-prompt.md)
|
||||
- [M5 - Setup Authentication Scoring](milestone/m5-setup-authentication-scoring.md)
|
||||
Copy the example environment file and configure it:
|
||||
|
||||
### M6: Admin Area
|
||||
- [M6 - Setup Admin Area](milestone/m6-setup-admin-area-prompt.md)
|
||||
- [M6 - Setup Admin Area Scoring](milestone/m6-setup-admin-area-scoring.md)
|
||||
```bash
|
||||
cp .env.example .env
|
||||
```
|
||||
|
||||
Update the `.env` file with your specific configuration (database credentials, API keys, etc.).
|
||||
|
||||
## Tech Stack Variations
|
||||
### 4. Run Development Server
|
||||
|
||||
### Python
|
||||
- **Backend:** Python, FastAPI, SQLAlchemy, SQLite (data persisted in a Docker volume)
|
||||
- **Frontend:** React + TypeScript (Vite), lucide-react icons, served by nginx
|
||||
- **Compose:** two services, frontend proxies /api to the backend
|
||||
```bash
|
||||
npm run dev
|
||||
# or
|
||||
yarn dev
|
||||
```
|
||||
|
||||
Visit `http://localhost:3000` in your browser.
|
||||
|
||||
### 5. Build for Production
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
npm start
|
||||
```
|
||||
|
||||
## Project Structure
|
||||
|
||||
```
|
||||
newzy/
|
||||
├── src/ # Application source code
|
||||
├── docs/ # Documentation files
|
||||
│ ├── architecture.md # System architecture
|
||||
│ └── api.md # API documentation
|
||||
├── tests/ # Test files
|
||||
├── public/ # Static assets
|
||||
├── .env.example # Environment variable template
|
||||
├── .gitignore # Git ignore rules
|
||||
├── LICENSE # MIT License
|
||||
├── README.md # This file
|
||||
└── CONTRIBUTING.md # Contribution guidelines
|
||||
```
|
||||
|
||||
## Getting Started
|
||||
|
||||
For developers new to the project, please read [CONTRIBUTING.md](CONTRIBUTING.md) to understand how to contribute.
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
||||
|
||||
## Support
|
||||
|
||||
For issues and feature requests, please create a GitHub issue or join our community discussions.
|
||||
Reference in new issue
Block a user