https://github.com/devphenom/popular-articles
https://github.com/devphenom/popular-articles
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/devphenom/popular-articles
- Owner: devphenom
- Created: 2025-04-09T17:55:08.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-04-10T17:44:41.000Z (12 months ago)
- Last Synced: 2025-04-10T18:58:06.237Z (12 months ago)
- Language: TypeScript
- Size: 403 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Most Popular Articles
A React application that displays the most popular articles.
## Prerequisites
- Node.js 18.18 or higher
## Setup
1. Install dependencies:
```bash
yarn install
```
or
```bash
npm install
```
2. Set up Husky for pre-commit hooks:
```bash
yarn prepare
```
## Development
Start the development server:
```bash
yarn dev
```
## Available Scripts
- `yarn dev` - Start development server
- `yarn build` - Build for production
- `yarn preview` - Preview production build
- `yarn lint` - Run ESLint
- `yarn format` - Format code with Prettier
- `yarn format:check` - Check code formatting
- `yarn type-check` - Run TypeScript type checking
- `yarn validate` - Run all validation checks
## Code Quality
This project uses:
- ESLint for code linting
- Prettier for code formatting
- TypeScript for type checking
- Husky for git hooks
- lint-staged for running checks on staged files
Pre-commit hooks will automatically:
- Run TypeScript type checking
- Fix ESLint issues
- Format code with Prettier