chore: initialize repository infrastructure
- Initialize Git repository with main branch - Create .gitignore for web application (Node.js) - Setup docs/ directory for project documentation - Add README.md with project overview and setup instructions - Add CONTRIBUTING.md with contribution guidelines - Add LICENSE with MIT license text - Configure pre-push hooks for code quality checks BREAKING CHANGE: Repository structure established for team collaboration
This commit is contained in:
commit
0967f702d4
5 files changed
+446
No files matched your search
+54
@@ -0,0 +1,54 @@
|
|||||||
|
# Dependencies
|
||||||
|
node_modules/
|
||||||
|
.pnpm-store/
|
||||||
|
yarn.lock
|
||||||
|
|
||||||
|
# Environment files
|
||||||
|
.env
|
||||||
|
.env.local
|
||||||
|
.env.*.local
|
||||||
|
**/.env*
|
||||||
|
|
||||||
|
# Build outputs
|
||||||
|
dist/
|
||||||
|
build/
|
||||||
|
.next/
|
||||||
|
out/
|
||||||
|
|
||||||
|
# Logs
|
||||||
|
logs/
|
||||||
|
*.log
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
lerna-debug.log*
|
||||||
|
.pnpm/*.log
|
||||||
|
|
||||||
|
# Editor & IDE
|
||||||
|
.idea/
|
||||||
|
.vscode/
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
*~
|
||||||
|
.project
|
||||||
|
.pydevproject
|
||||||
|
.settings/
|
||||||
|
.classpath
|
||||||
|
.cache*/
|
||||||
|
*.sublime-*
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
# Testing
|
||||||
|
coverage/
|
||||||
|
.nyc_output/
|
||||||
|
|
||||||
|
# OS
|
||||||
|
Thumbs.db
|
||||||
|
.DS_Store
|
||||||
|
hfs#.
|
||||||
|
|
||||||
|
# Temporary files
|
||||||
|
tmp/
|
||||||
|
temp/
|
||||||
|
*.tmp
|
||||||
|
*.bak
|
||||||
+169
@@ -0,0 +1,169 @@
|
|||||||
|
# Contributing to newzy
|
||||||
|
|
||||||
|
First off, thank you for considering contributing to newzy! It's people like you that make newzy such a great tool.
|
||||||
|
|
||||||
|
## Table of Contents
|
||||||
|
|
||||||
|
- [Code of Conduct](#code-of-conduct)
|
||||||
|
- [How Can I Contribute?](#how-can-i-contribute)
|
||||||
|
- [Reporting Bugs](#reporting-bugs)
|
||||||
|
- [Suggesting Enhancements](#suggesting-enhancements)
|
||||||
|
- [Pull Requests](#pull-requests)
|
||||||
|
- [Development Setup](#development-setup)
|
||||||
|
- [Coding Standards](#coding-standards)
|
||||||
|
- [Git Workflow](#git-workflow)
|
||||||
|
- [Style Guides](#style-guides)
|
||||||
|
|
||||||
|
## Code of Conduct
|
||||||
|
|
||||||
|
This project and everyone participating in it is expected to abide by the following code of conduct:
|
||||||
|
|
||||||
|
- Be respectful and considerate
|
||||||
|
- Focus on what is best for the community
|
||||||
|
- Accept constructive criticism gracefully
|
||||||
|
|
||||||
|
Please read our [Code of Conduct](CODE_OF_CONDUCT.md) before contributing.
|
||||||
|
|
||||||
|
## How Can I Contribute?
|
||||||
|
|
||||||
|
### Reporting Bugs
|
||||||
|
|
||||||
|
Before creating bug reports, please check existing issues to avoid duplicates. When you are creating a bug report, please include as many details as possible:
|
||||||
|
|
||||||
|
- **Use a clear and descriptive title**
|
||||||
|
- **Describe the exact steps to reproduce** the bug
|
||||||
|
- **Provide specific examples** to demonstrate the steps (include links to files or projects that demonstrate the issue)
|
||||||
|
- **Describe the behavior you observed** after following the steps
|
||||||
|
- **Describe the behavior you expected** after following the steps
|
||||||
|
|
||||||
|
### Suggesting Enhancements
|
||||||
|
|
||||||
|
Enhancement suggestions are tracked as GitHub issues. Create an issue and clearly describe:
|
||||||
|
|
||||||
|
1. **Is your feature request related to a problem? Please describe it.**
|
||||||
|
2. **Describe the solution you'd like**
|
||||||
|
3. **Describe alternatives you've considered**
|
||||||
|
4. **Provide additional context** (e.g., motivation for this feature)
|
||||||
|
|
||||||
|
### Pull Requests
|
||||||
|
|
||||||
|
1. Fork the repo and create your branch from `develop`.
|
||||||
|
2. If you've added code that should be tested, add tests.
|
||||||
|
3. Ensure the test suite passes.
|
||||||
|
4. Update documentation if needed.
|
||||||
|
5. Make sure your code lints.
|
||||||
|
6. Issue that pull request!
|
||||||
|
|
||||||
|
**Pull Request Guidelines**: Use one of the following prefixes to categorize your PR:
|
||||||
|
|
||||||
|
- `feat:` - A new feature
|
||||||
|
- `fix:` - A bug fix
|
||||||
|
- `docs:` - Documentation changes
|
||||||
|
- `style:` - Formatting, missing semicolons, etc; no code change
|
||||||
|
- `refactor:` - Code change that neither fixes a bug nor adds a feature
|
||||||
|
- `perf:` - A code change that improves performance
|
||||||
|
- `test:` - Adding missing tests
|
||||||
|
- `chore:` - Changes to the build process or auxiliary tools
|
||||||
|
|
||||||
|
## Development Setup
|
||||||
|
|
||||||
|
### Requirements
|
||||||
|
|
||||||
|
- Node.js (v18+)
|
||||||
|
- npm or yarn
|
||||||
|
|
||||||
|
### Installation
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/daniel/newzy.git
|
||||||
|
cd newzy
|
||||||
|
npm install
|
||||||
|
cp .env.example .env
|
||||||
|
# Edit .env with your configuration
|
||||||
|
npm run dev
|
||||||
|
```
|
||||||
|
|
||||||
|
## Coding Standards
|
||||||
|
|
||||||
|
We use modern JavaScript (ES6+). Follow these guidelines:
|
||||||
|
|
||||||
|
- Use consistent indentation (2 spaces)
|
||||||
|
- Single quotes instead of double quotes (unless using template literals)
|
||||||
|
- Semicolons at the end of each statement
|
||||||
|
- No trailing whitespace
|
||||||
|
- One function per file when possible
|
||||||
|
- Meaningful variable and function names
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
// Good
|
||||||
|
const users = getUserData();
|
||||||
|
if (users.length > 0) {
|
||||||
|
return users[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
// Bad
|
||||||
|
const user = get_data();
|
||||||
|
if(user.length > 0){
|
||||||
|
return user[0]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Git Workflow
|
||||||
|
|
||||||
|
### Branching Strategy
|
||||||
|
|
||||||
|
We follow a GitFlow-inspired workflow:
|
||||||
|
|
||||||
|
- `main` - Production-ready code
|
||||||
|
- `develop` - Integration branch for feature development
|
||||||
|
- `feature/*` - New features and enhancements (branch from develop)
|
||||||
|
- `bugfix/*` - Bug fixes from develop
|
||||||
|
- `hotfix/*` - Critical fixes from main
|
||||||
|
|
||||||
|
### Making a Commit
|
||||||
|
|
||||||
|
When making commits, use the following format:
|
||||||
|
|
||||||
|
```
|
||||||
|
<type>(<scope>): <subject>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
```
|
||||||
|
|
||||||
|
**Types**:
|
||||||
|
- `feat:` - A new feature
|
||||||
|
- `fix:` - A bug fix
|
||||||
|
- `docs:` - Documentation changes
|
||||||
|
- `style:` - Formatting changes
|
||||||
|
- `refactor:` - Code refactoring
|
||||||
|
- `perf:` - Performance improvements
|
||||||
|
- `test:` - Test additions/changes
|
||||||
|
- `chore:` - Maintenance tasks
|
||||||
|
|
||||||
|
**Examples**:
|
||||||
|
```
|
||||||
|
feat(auth): add OAuth2 authentication flow
|
||||||
|
|
||||||
|
Implement OAuth2 login with Google, GitHub, and Microsoft providers.
|
||||||
|
Added user session management with refresh token support.
|
||||||
|
|
||||||
|
Closes #123
|
||||||
|
```
|
||||||
|
|
||||||
|
### Pre-Push Hooks
|
||||||
|
|
||||||
|
Pre-push hooks are configured to run linting and tests before pushing to the remote repository.
|
||||||
|
|
||||||
|
## Style Guides
|
||||||
|
|
||||||
|
- Follow [Airbnb JavaScript Style Guide](https://github.com/airbnb/javascript)
|
||||||
|
- Use ESLint for code linting
|
||||||
|
- Follow Prettier formatting rules
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Thank you for contributing to newzy! 🎉
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2024 newzy Project
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
@@ -0,0 +1,115 @@
|
|||||||
|
# newzy
|
||||||
|
|
||||||
|
A news web application for discovering and sharing stories from around the world.
|
||||||
|
|
||||||
|
## 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`
|
||||||
|
|
||||||
|
## 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
|
||||||
|
```
|
||||||
|
|
||||||
|
## Development
|
||||||
|
|
||||||
|
### Building for Production
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run build
|
||||||
|
# or
|
||||||
|
yarn build
|
||||||
|
```
|
||||||
|
|
||||||
|
### Running Tests
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm test
|
||||||
|
# or
|
||||||
|
yarn test
|
||||||
|
```
|
||||||
|
|
||||||
|
### Linting
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run lint
|
||||||
|
# or
|
||||||
|
yarn lint
|
||||||
|
```
|
||||||
|
|
||||||
|
## 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
|
||||||
@@ -0,0 +1,87 @@
|
|||||||
|
# M1: Setup Git Project Prompt
|
||||||
|
|
||||||
|
## Prompt
|
||||||
|
|
||||||
|
Create a new git repository for a news web application called **newzy**. Follow these steps:
|
||||||
|
|
||||||
|
1. Initialize a new Git repository in the `newzy` project directory
|
||||||
|
2. Configure `.gitignore` with appropriate exclusions for web applications (node modules, logs, env files, etc.)
|
||||||
|
3. Set up initial branch structure:
|
||||||
|
- `main`: Production-ready, stable releases
|
||||||
|
- `develop`: Integration branch for feature development
|
||||||
|
4. Create the following initial file structure:
|
||||||
|
- `docs/` - Project documentation
|
||||||
|
5. Add `README.md` with project overview and setup instructions
|
||||||
|
6. Add `CONTRIBUTING.md` with contribution guidelines
|
||||||
|
7. Add `LICENSE` with MIT license text
|
||||||
|
8. Commit all initial files with a descriptive commit message following conventional commits format
|
||||||
|
9. Create the `develop` branch from `main`
|
||||||
|
10. Push both branches to remote repository
|
||||||
|
|
||||||
|
Remember: This is just project setup. Do NOT implement any news web application functionality yet.
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
This milestone sets up the foundational git infrastructure for **newzy**, a news web application. The scope is limited to repository initialization and project scaffolding—no actual news functionality will be implemented at this stage.
|
||||||
|
|
||||||
|
**Purpose**: Create a professional, maintainable git repository structure that enables smooth team collaboration from day one.
|
||||||
|
|
||||||
|
**Target Audience**: New contributors, team members, and future developers joining the project.
|
||||||
|
|
||||||
|
**Expected Outcomes**: A fully initialized git repository with proper branching strategy, documentation, and standard files ready for development work.
|
||||||
|
|
||||||
|
## Acceptance Criteria
|
||||||
|
|
||||||
|
- [ ] Git repository is initialized with proper configuration
|
||||||
|
- [ ] Standard branch strategy is documented (e.g., main, develop, feature/*)
|
||||||
|
- [ ] File structure and naming conventions are clearly defined
|
||||||
|
- [ ] LICENSE file with MIT license is included
|
||||||
|
- [ ] .gitignore file includes relevant exclusions for the project type
|
||||||
|
- [ ] Initial README.md explains how to get started
|
||||||
|
- [ ] Sample commit messages demonstrate best practices
|
||||||
|
- [ ] Documentation covers branching, merging, and rebase workflows
|
||||||
|
|
||||||
|
## Technical Details
|
||||||
|
|
||||||
|
### Project Structure
|
||||||
|
```
|
||||||
|
project-root/
|
||||||
|
├── docs/
|
||||||
|
│ └── ... # Documentation for the project
|
||||||
|
├── LICENSE # MIT License
|
||||||
|
├── README.md
|
||||||
|
└── CONTRIBUTING.md
|
||||||
|
```
|
||||||
|
|
||||||
|
### Branch Strategy
|
||||||
|
- `main`: Production-ready code, stable releases
|
||||||
|
- `develop`: Integration branch for feature development
|
||||||
|
- `feature/*`: New features and enhancements
|
||||||
|
- `bugfix/*`: Bug fixes from develop
|
||||||
|
- `hotfix/*`: Critical fixes from main
|
||||||
|
|
||||||
|
### License
|
||||||
|
MIT License - See LICENSE file in project root
|
||||||
|
|
||||||
|
### Git Configuration Requirements
|
||||||
|
- Email and name configured on all contributors
|
||||||
|
- Pre-push hooks for code quality checks
|
||||||
|
- Merge conflict resolution strategy documented
|
||||||
|
|
||||||
|
## QA Notes
|
||||||
|
|
||||||
|
### Testing Checklist
|
||||||
|
- [ ] Verify git history is clean and properly formatted
|
||||||
|
- [ ] Confirm .gitignore excludes all necessary files
|
||||||
|
- [ ] Test branch creation and switching workflow
|
||||||
|
- [ ] Validate merge and rebase instructions work correctly
|
||||||
|
- [ ] Check README examples are accurate
|
||||||
|
- [ ] Ensure documentation is language-appropriate
|
||||||
|
|
||||||
|
### Known Issues / Limitations
|
||||||
|
- Any known limitations in the prompt that should be addressed in future iterations
|
||||||
|
|
||||||
|
### Success Metrics
|
||||||
|
- Time to onboard new contributor (hours)
|
||||||
|
- Number of merge conflicts after training
|
||||||
|
- Contribution quality scores
|
||||||
Reference in new issue
Block a user