Add frontend project structure with React/TypeScript setup

This commit is contained in:
Newzy Developer committed 2026-10-30 10:53:31 +00:00
1 parent c7abb73c66
commit 6914a6855c
58 files changed
+9056 -236

No files matched your search

+39 -92
View File
@@ -1,115 +1,62 @@
# newzy
# Newzy - News Web Application
A news web application for discovering and sharing stories from around the world.
A modern news web application built with FastAPI backend and a responsive frontend.
## Overview
newzy is a modern, responsive news platform that delivers curated content across multiple categories including technology, sports, entertainment, business, and more. Built with performance and user experience in mind.
## Features
- 📰 Curated news articles from trusted sources
- 🚀 Fast loading times and optimized performance
- 📱 Mobile-first responsive design
- 🔍 Powerful search functionality
- 📝 Customizable categories and filters
- 🔔 Newsletter subscription
- 🌐 Multi-language support (coming soon)
## Prerequisites
Before you begin, ensure you have the following installed:
- [Node.js](https://nodejs.org/) (v18 or higher)
- [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/) package manager
- A code editor (VS Code, Sublime Text, etc.)
## Installation
1. Clone the repository:
```bash
git clone https://github.com/daniel/newzy.git
cd newzy
```
2. Install dependencies:
```bash
npm install
# or
yarn install
```
3. Create a `.env` file in the root directory with your environment variables:
```bash
cp .env.example .env
# Edit .env with your configuration
```
4. Start the development server:
```bash
npm run dev
# or
yarn dev
```
5. Open your browser and navigate to `http://localhost:3000`
Newzy is a news platform that allows users to browse, read, and subscribe to news articles organized by categories and authors.
## Project Structure
```
project-root/
├── src/ # Source code
│ ├── components/ # Reusable UI components
│ ├── pages/ # Route-specific components
│ ├── services/ # API and external service integrations
│ └── utils/ # Helper functions and utilities
├── public/ # Static assets
├── docs/ # Project documentation
├── tests/ # Test files
├── .gitignore # Git ignore rules
├── LICENSE # MIT License
├── README.md # This file
└── CONTRIBUTING.md # Contribution guidelines
newz/
├── backend/ # FastAPI backend API
│ ├── api/ # API versioning
│ ├── core/ # Core functionality
│ ├── db/ # Database layer
│ ├── models/ # SQLAlchemy models
│ ├── schemas/ # Pydantic schemas
│ ├── tests/ # Unit tests
│ └── main.py # Application entry point
├── frontend/ # Frontend application (to be implemented)
├── docker-compose.yml # Docker Compose configuration
├── README.md # This file
└── CONTRIBUTING.md # Contribution guidelines
```
## Development
## Quick Start
### Building for Production
### Prerequisites
- Python 3.11+
- Docker and Docker Compose (optional)
### Local Development
```bash
npm run build
# or
yarn build
# Install backend dependencies
cd backend
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# Run the application
uvicorn main:app --reload
```
### Running Tests
### Using Docker
```bash
npm test
# or
yarn test
docker-compose up -d backend
```
### Linting
## API Endpoints
```bash
npm run lint
# or
yarn lint
```
- `GET /health` - Health check
- `GET /api/v1/version` - Version information
More endpoints will be added in subsequent milestones.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed contribution guidelines.
## Support
For issues and feature requests, please open a GitHub issue. For urgent matters, contact the project maintainer directly.
---
Made with ❤️ by the newzy team
MIT License - See LICENSE file for details.